Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
Havouza

Wrong country code

Question

below the output from a payment gateway for prestashop. The shop is migrated to tb 1.03 The problem is that the countrycode get wrong it should be Se and not Sverige. With this wrong the choise invoice will not show Where is this Sverige picked up from?

{"id":null,"status":null,"merchant":{"checkoutUri":"http:\/\/www.jv74.se\/modules\/paysonCheckout2\/validation.php?trackingId=1509969136&idcart=109","confirmationUri":"http:\/\/www.jv74.se\/modules\/paysonCheckout2\/validation.php?trackingId=1509969136&idcart=109","notificationUri":"http:\/\/www.jv74.se\/modules\/paysonCheckout2\/ipnpayson.php?idcart=109","verificationUri":null,"termsUri":"http:\/\/www.jv74.se\/index.php?idcms=3&controller=cms&contentonly=1","reference":109,"partnerId":null,"integrationInfo":"PaysonCheckout2.0_Prestashop|1.0.1.3|1.6.1.999"},"order":{"currency":"SEK","items":[{"discountRate":null,"creditedAmount":null,"imageUri":null,"name":"Strike\/V-stativ Svart RAL 9005","unitPrice":"756.25","quantity":"1","taxRate":"0.250","reference":"7879","type":"physical","uri":null,"ean":null}]},"gui":{"colorScheme":"gray","locale":"SV","verfication":"none","requestPhone":0},"customer":{"city":"V\u00e4llingby","countryCode":"Sverige","identityNumber":"","email":"elenasmolina@hotmail.com","firstName":"Elena","lastName":"Smolina","phone":"0736329862","postalCode":"16267","street":"Lyckselev\u00e4gen 72","type":"person"}}

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Strange. Sweden is not in the customer table and not in the address table. So from where does it come

Share this post


Link to post
Share on other sites
  • 0

THis is the only place in the module code where the countrycode is. But where is the variable created?

shippingAddress_country = "' . $paymentDetails->customer->countryCode . '"

Share this post


Link to post
Share on other sites
  • 0

When you look at the different options in back-office>Localization, do you see Sweden listed, and if so what ID are they? Like in Localization>Countries, do you see Sweden as 18?

Share this post


Link to post
Share on other sites
  • 0

I'm outta ideas if you have sweden as 18, and it's listed everywhere else in Localization. Next.....

Share this post


Link to post
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...