THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 virtual product delivery

(13-11-2016 18:07:48)


I am using the virtual product delivery module with the paypal module.  The virtual product delivery does not have a shipping address but the paypal requires it.  I get this error in paypal when testing:

INFO: 2016-11-12 15:38:17: 2016-11-12 20:38:17 Transaction Failure correlationId: cb07354aa393f error: [10729] The field Shipping Address State is required

Ozzie

Offline

#2 Re: virtual product delivery

(13-11-2016 18:57:31)


The default shipping addresss is the customer billing address. This is the one passed to PayPal.

What is the content of your log/log-paypal.txt file ?


OpenStudio Toulouse

Offline

#3 Re: virtual product delivery

(13-11-2016 19:16:48)


INFO: 2016-11-12 15:38:17: 2016-11-12 20:38:17 Transaction Failure correlationId: cb07354aa393f error: [10729] <Shipping Address State Empty> The field Shipping Address State is required
INFO: 2016-11-12 15:40:53: 2016-11-12 20:40:53 Transaction Failure correlationId: c0b5aebeac05 error: [10729] <Shipping Address State Empty> The field Shipping Address State is required
INFO: 2016-11-12 15:41:28: 2016-11-12 20:41:28 Transaction Failure correlationId: fa3477c546863 error: [10729] <Shipping Address State Empty> The field Shipping Address State is required
INFO: 2016-11-12 19:42:55: 2016-11-13 00:42:55 Transaction Failure correlationId: 6fa16cad11d64 error: [10729] <Shipping Address State Empty> The field Shipping Address State is required

Offline

#4 Re: virtual product delivery

(13-11-2016 19:21:36)


"The field Shipping Address State is required"

The customer billing address is missing a valid state, I gess.


OpenStudio Toulouse

Offline

#5 Re: virtual product delivery

(13-11-2016 19:26:01)


The customer address is complete. This is a required field when signing up.

Ozzie

Offline

#6 Re: virtual product delivery

(13-11-2016 19:32:25)


Okay. In local/modules/Paypal/Paypal.php, around line 147, try to replace

"", // State

by

$address->getState()->getTitle(),

OpenStudio Toulouse

Offline

#7 Re: virtual product delivery

(13-11-2016 19:44:12)


I replaced the line and now I get this error

INFO: 2016-11-13 13:42:03: 2016-11-13 18:42:03 Transaction Failure correlationId: 1650f2147d2b error: [10736] A match of the Shipping Address City, State, and Postal Code failed.

Offline

#8 Re: virtual product delivery

(13-11-2016 19:58:17)


What is the customer address ?


OpenStudio Toulouse

Offline

#9 Re: virtual product delivery

(13-11-2016 20:01:46)


I used my home address to test with in the United States.  I would rather not post it here.

Offline


Why don't you try another one ?


OpenStudio Toulouse

Offline


I changed the address and got the same error.

INFO: 2016-11-13 14:35:57: 2016-11-13 19:35:56 Transaction Failure correlationId: 509674ca33c09 error: [10736] A match of the Shipping Address City, State, and Postal Code failed.

Offline


So, what's this address ?


OpenStudio Toulouse

Offline


$address->getState()->getTitle(),


I changed above to $address->getState()->getisocode(), and it worked.

Last edited by Ozzie (14-11-2016 01:23:30)

Offline

Offline


Thank you for all your help.