Paid service: add Name Surname to payment details
Posted: Tue Oct 13, 2020 3:40 am
Hi!
We are using free Paysera payment gateway for Opencart 2.3.0.2
https://www.opencart.com/index.php?rout ... n_id=15090
We need to add customer Name Surname in payment details.
Instead of standard
Payment for goods and services (for nb. [order_nr]) ([site_name])
we need
Payment for goods and services (for nb. [order_nr]) [p_firstname] [p_lastname] ([site_name]).
Paysera tech support recommendation:
In controller/payment/paysera.php you need to add "paytext" parameter.
More about request parameters:
https://developers.paysera.com/en/check ... on-library
There are two paths to file:
/catalog/controller/extension/payment/paysera.php
/admin/controller/extension/payment/paysera.php
Paysera tech support recommendation:
Since you want the name and last name to be displayed dynamically, you will need some extra steps, not just addition of one line of code.
These two fields [order_nr], [site_name] are filled by our system, however when you will provide [p_firstname] [p_lastname] our system won't fill them, therefore you would see something like:
"Payment for goods and services (for nb. 123) (https://testpage.com) from [p_firstname] [p_lastname]".
We are using free Paysera payment gateway for Opencart 2.3.0.2
https://www.opencart.com/index.php?rout ... n_id=15090
We need to add customer Name Surname in payment details.
Instead of standard
Payment for goods and services (for nb. [order_nr]) ([site_name])
we need
Payment for goods and services (for nb. [order_nr]) [p_firstname] [p_lastname] ([site_name]).
Paysera tech support recommendation:
In controller/payment/paysera.php you need to add "paytext" parameter.
More about request parameters:
https://developers.paysera.com/en/check ... on-library
There are two paths to file:
/catalog/controller/extension/payment/paysera.php
/admin/controller/extension/payment/paysera.php
Paysera tech support recommendation:
Since you want the name and last name to be displayed dynamically, you will need some extra steps, not just addition of one line of code.
These two fields [order_nr], [site_name] are filled by our system, however when you will provide [p_firstname] [p_lastname] our system won't fill them, therefore you would see something like:
"Payment for goods and services (for nb. 123) (https://testpage.com) from [p_firstname] [p_lastname]".