viliera Posted February 1, 2020 Share Posted February 1, 2020 Hola, I just realized that when customers buy at the store choosing payment with "PrestaShop Checkout" and with their card, the name of the store appears in the bank, As the name is set in the prestashop settings. >> Settings / Contact / Stores / Store Name. I do not want the name of the store to appear at the bank or in your PayPal account, because it is a store of erotic toys and we have to respect the confidentiality of payments too. I want another name that appears in customer payment transactions. Please, if anyone knows how to change this in the module I would greatly appreciate it. Thank you. Best regards. Link to comment Share on other sites More sharing options...
viliera Posted February 4, 2020 Author Share Posted February 4, 2020 No one knows how to do it? Link to comment Share on other sites More sharing options...
viliera Posted March 2, 2020 Author Share Posted March 2, 2020 No one has this problem? 😶 Link to comment Share on other sites More sharing options...
viliera Posted March 27, 2020 Author Share Posted March 27, 2020 I am still unable to solve this issue, to see if someone gives the solution. ☹️ Link to comment Share on other sites More sharing options...
HiPresta Modules Posted March 28, 2020 Share Posted March 28, 2020 You'll need to modify 2 files: 1) /modules/ps_checkout/classes/Builder/Payload/OrderPayloadBuilder.php Find the function buildBaseNode() and change the following lines: $shopName = \Configuration::get( 'PS_SHOP_NAME', null, null, (int) \Context::getContext()->shop->id ); You can assign to $shopName variable anything you wish: $shopName = 'Here goes your shop name'; 2) /modules/ps_checkout/classes/Refund.php Find the function getPayload() and change the following lines: 'note_to_payer' => 'Refund by ' . \Configuration::get( 'PS_SHOP_NAME', null, null, (int) \Context::getContext()->shop->id ), It should look like this: 'note_to_payer' => 'Refund by YOUR SHOP NAME', Link to comment Share on other sites More sharing options...
viliera Posted March 29, 2020 Author Share Posted March 29, 2020 Hello, Thank you very much for giving the solution, I really appreciate it. I hope Prestashop adds this functionality without us having to modify the code. The code: $shopName = 'Here goes your shop name'; Replace all the code: $shopName = \Configuration::get( 'PS_SHOP_NAME', null, null, (int) \Context::getContext()->shop->id ); Remaining the code like this: /** * Build the basic payload */ public function buildBaseNode() { $shopName = $shopName = 'Here goes your shop name'; $node = [ 'intent' => \Configuration::get( 'PS_CHECKOUT_INTENT', null, null, (int) \Context::getContext()->shop->id Right yes? I attached the capture to confirm if the code will be like this. Best regards Link to comment Share on other sites More sharing options...
HiPresta Modules Posted March 29, 2020 Share Posted March 29, 2020 Almost, it should be one $shopName, like this: $shopName = 'Here goes your shop name'; Also, make sure to replace 'Here goes your shop name' with the actual string you want to appear Link to comment Share on other sites More sharing options...
viliera Posted March 29, 2020 Author Share Posted March 29, 2020 Of course, I have already replaced only need to try now. I have found another code with the: 'PS_SHOP_NAME' In the code.in/modules/ps_checkout/classes/Builder/Payload/OrderPayloadBuilder.php public function buildApplicationContextNode() { $node['application_context'] = [ 'brand_name' => \Configuration::get( 'PS_SHOP_NAME', null, null, (int) \Context::getContext()->shop->id ), 'shipping_preference' => $this->expressCheckout ? 'GET_FROM_FILE' : 'SET_PROVIDED_ADDRESS', ]; $this->getPayload()->addAndMergeItems($node); } This will not be touched right? Thank you so much Regards Link to comment Share on other sites More sharing options...
HiPresta Modules Posted March 29, 2020 Share Posted March 29, 2020 (edited) I think no need to modify it, but if you still have your shop name in PayPal you can always change it too. Edited March 29, 2020 by HiPresta Modules (see edit history) Link to comment Share on other sites More sharing options...
viliera Posted April 8, 2020 Author Share Posted April 8, 2020 On 29/3/2020 at 15:38, HiPresta Modules said: Creo que no es necesario modificarlo, pero si todavía tiene el nombre de su tienda en PayPal, siempre puede cambiarlo también. Thank you very much for everything, I have resolved this matter thanks to you. It is working very well and I hope Prestashop implements this option in the module configuration. Best regards. Link to comment Share on other sites More sharing options...
viliera Posted October 22, 2020 Author Share Posted October 22, 2020 Hi HiPresta Modules, I have updated the module ps_checkout to the latest version v2.0.5 and files from the CLASSES FOLDER disappeared. Can you help me again please? You are the only one who has helped me with this before. Where you will have put this configuration to change the name of the store again. Thank you so muchs. Best regards Link to comment Share on other sites More sharing options...
viliera Posted October 22, 2020 Author Share Posted October 22, 2020 I think I have found, now these files are in / ps_checkout / src/ The only thing that I'm not sure if I can make these changes the same as before. can you confirm? Thanks Link to comment Share on other sites More sharing options...
viliera Posted October 22, 2020 Author Share Posted October 22, 2020 Look, I have left it like that, because now it puts another code, the old code is gone. now I think it's this to change it. $shopName = $configuration->get('PS_SHOP_NAME'); Link to comment Share on other sites More sharing options...
Lee Posted April 1, 2022 Share Posted April 1, 2022 Hi, I have made these changes but customers are still telling us that the incorrect name is on their card statements I have tried changing the shop name also in 'brand_name' => \Configuration::get( 'PS_SHOP_NAME', but this just breaks the module. Does PS_SHOP_NAME exist anywhere else in the code of the Prestashop Checkout module that would need changing to fix this issue? Can this be fixed by changing the card statement name / shop name inside the mysql database? When customers choose Paypal this is fine as it takes the 'card statement name' saved in our Paypal account, but when they pay by card it uses a completely different name - we take payments for multiple websites using our single Paypal account and so the card name needs to be correct for each website - there must be a fix for this issue? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now