Jump to content

"Confidentiality" Change merchant name in PrestaShop Checkout v1.2.11


viliera

Recommended Posts

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

  • 4 weeks later...
  • 4 weeks later...

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

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

Captura de pantalla 2020-03-29 a las 15.02.05.png

Link to comment
Share on other sites

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

  • 2 weeks later...
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

  • 6 months later...

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

  • 1 year later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...