Error unsupported country

Hi,
My website worked before but now I put a new online course and see that nothing works and only get unsupported country. I changed to Express check-out on Paypal but doesn’t help. So what is the problem? I have downloade a log file but can put attachement here but at least I see this ‘METHOD’ => ‘DoDirectPayment’,

https://annikaundeborn.se/online-kurs-i-hawaiiansk-massage/

All the best,
Annika

Hi Annika,

Where do you see the error message, on PayPal’s site or above the pro-form? Do you get an error code with that message?

Do you get that when you pick PayPal as the option to pay, or only when you pick a card?

What were you using before when it was working fine? And did it stop working before or after you changed to the PayPal pro-form?

Could you show me the shortcode you’re using?

It sounds like you have logging enabled. When you reproduce the behavior, can you find all the relevant entries from the log files, and show them to me? (changing sensitive details)

:slight_smile:

Hi,
Thank you for your answer and I get the error code above the pro-form “Error #10565. Merchant country unsupported. I can test with paypal because it’ the same as the account used with you plugin.

I just used before the free version of S2member, because there was a problem with the pro-form earlier but now suddenly the free version just gave an option to pay with paypal account so thought I try with the pro-form again.

The shortcode
[s2Member-Pro-PayPal-Form level=“1” ccaps=“e” desc=“Online kurs i Hawaiiansk Massage” ps=“annika” lc="" cc=“SEK” dg=“0” ns=“1” custom=“annikaundeborn.se” ta=“0” tp=“0” tt=“M” ra=“1” rp=“3” rt=“M” rr=“BN” rrt="" rra=“2” accept=“paypal,visa,mastercard,amex,discover,maestro,solo” accept_via_paypal=“paypal” coupon="" accept_coupons=“0” default_country_code="" captcha=“0” /]

Here is 2 ex from the log file
LOG ENTRY: Mon Aug 1st, 2022 @ precisely 11:10 am UTC
PHP v8.0.21 :: WordPress v6.0.1 :: s2Member v220421 :: s2Member Pro v220421
Memory 16.07 MB :: Real Memory 22.00 MB :: Peak Memory 16.46 MB :: Real Peak Memory 22.00 MB
annikaundeborn.se/online-kurs-i-hawaiiansk-massage/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.77
-------- Input vars: ( Mon Aug 1, 2022 11:10:23 am UTC ) --------
array (
‘METHOD’ => ‘DoDirectPayment’,
‘PAYMENTACTION’ => ‘Sale’,
‘EMAIL’ => ‘annika@anweb.gr’,
‘FIRSTNAME’ => ‘Annik’,
‘LASTNAME’ => ‘Nordin’,
‘IPADDRESS’ => ‘94.66.147.102’,
‘DESC’ => ‘Online kurs i Hawaiiansk Massage’,
‘CUSTOM’ => ‘annikaundeborn.se’,
‘CURRENCYCODE’ => ‘SEK’,
‘ITEMAMT’ => ‘1.00’,
‘TAXAMT’ => ‘0.00’,
‘AMT’ => ‘1.00’,
‘L_QTY0’ => ‘1’,
‘L_NAME0’ => ‘Online kurs i Hawaiiansk Massage’,
‘L_NUMBER0’ => ‘1:e:3 M’,
‘L_AMT0’ => ‘1.00’,
‘CREDITCARDTYPE’ => ‘MasterCard’,
‘ACCT’ => ‘************’,
‘EXPDATE’ => ‘’,
‘CVV2’ => ‘’,
‘STREET’ => ‘Tholaria’,
‘CITY’ => ‘Amorgos’,
‘STATE’ => ‘Cyclades’,
‘COUNTRYCODE’ => ‘GR’,
‘ZIP’ => ‘84008’,
‘VERSION’ => ‘71.0’,
‘USER’ => ‘annika_undeborn_api1.hotmail.com’,
‘PWD’ => ‘xxxxxxxx/PWD/SIG’,
‘SIGNATURE’ => ‘xxxxxxxx/PWD/SIG’,
)
-------- Output string/vars: ( Mon Aug 1, 2022 11:10:24 am UTC ) --------
TIMESTAMP=2022%2d08%2d01T11%3a10%3a24Z&CORRELATIONID=7572c701fb1ee&ACK=Failure&VERSION=71%2e0&BUILD=56068150&L_ERRORCODE0=10565&L_SHORTMESSAGE0=Merchant%20country%20unsupported%2e&L_LONGMESSAGE0=The%20merchant%20country%20is%20not%20supported%2e&L_SEVERITYCODE0=Error&AMT=1%2e00&CURRENCYCODE=SEK
array (
‘TIMESTAMP’ => ‘2022-08-01T11:10:24Z’,
‘CORRELATIONID’ => ‘7572c701fb1ee’,
‘ACK’ => ‘Failure’,
‘VERSION’ => ‘71.0’,
‘BUILD’ => ‘56068150’,
‘L_ERRORCODE0’ => ‘10565’,
‘L_SHORTMESSAGE0’ => ‘Merchant country unsupported.’,
‘L_LONGMESSAGE0’ => ‘The merchant country is not supported.’,
‘L_SEVERITYCODE0’ => ‘Error’,
‘AMT’ => ‘1.00’,
‘CURRENCYCODE’ => ‘SEK’,
‘__error’ => ‘Error #10565. Merchant country unsupported. The merchant country is not supported.’,
)

LOG ENTRY: Mon Aug 1st, 2022 @ precisely 11:19 am UTC
PHP v8.0.21 :: WordPress v6.0.1 :: s2Member v220421 :: s2Member Pro v220421
Memory 16.07 MB :: Real Memory 20.00 MB :: Peak Memory 16.46 MB :: Real Peak Memory 20.00 MB
annikaundeborn.se/online-kurs-i-hawaiiansk-massage/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
-------- Input vars: ( Mon Aug 1, 2022 11:19:18 am UTC ) --------
array (
‘METHOD’ => ‘DoDirectPayment’,
‘PAYMENTACTION’ => ‘Sale’,
‘EMAIL’ => ‘annikaundeborn@protonmail.com’,
‘FIRSTNAME’ => ‘Annika’,
‘LASTNAME’ => ‘Undeborn’,
‘IPADDRESS’ => ‘188.151.101.8’,
‘DESC’ => ‘Online kurs i Hawaiiansk Massage’,
‘CUSTOM’ => ‘annikaundeborn.se’,
‘CURRENCYCODE’ => ‘SEK’,
‘ITEMAMT’ => ‘1.00’,
‘TAXAMT’ => ‘0.00’,
‘AMT’ => ‘1.00’,
‘L_QTY0’ => ‘1’,
‘L_NAME0’ => ‘Online kurs i Hawaiiansk Massage’,
‘L_NUMBER0’ => ‘1:e:3 M’,
‘L_AMT0’ => ‘1.00’,
‘CREDITCARDTYPE’ => ‘MasterCard’,
‘ACCT’ => ‘************’,
‘EXPDATE’ => ‘’,
‘CVV2’ => ‘’,
‘STREET’ => ‘Lgh. 1404, Raggatan 4’,
‘CITY’ => ‘Stockholm’,
‘STATE’ => ‘Stockholms lan’,
‘COUNTRYCODE’ => ‘SE’,
‘ZIP’ => ‘118 59’,
‘VERSION’ => ‘71.0’,
‘USER’ => ‘annika_undeborn_api1.hotmail.com’,
‘PWD’ => ‘xxxxxxxx/PWD/SIG’,
‘SIGNATURE’ => ‘xxxxxxxx/PWD/SIG’,
)
-------- Output string/vars: ( Mon Aug 1, 2022 11:19:19 am UTC ) --------
TIMESTAMP=2022%2d08%2d01T11%3a19%3a19Z&CORRELATIONID=a49e52a1f04ac&ACK=Failure&VERSION=71%2e0&BUILD=56068150&L_ERRORCODE0=10565&L_SHORTMESSAGE0=Merchant%20country%20unsupported%2e&L_LONGMESSAGE0=The%20merchant%20country%20is%20not%20supported%2e&L_SEVERITYCODE0=Error&AMT=1%2e00&CURRENCYCODE=SEK
array (
‘TIMESTAMP’ => ‘2022-08-01T11:19:19Z’,
‘CORRELATIONID’ => ‘a49e52a1f04ac’,
‘ACK’ => ‘Failure’,
‘VERSION’ => ‘71.0’,
‘BUILD’ => ‘56068150’,
‘L_ERRORCODE0’ => ‘10565’,
‘L_SHORTMESSAGE0’ => ‘Merchant country unsupported.’,
‘L_LONGMESSAGE0’ => ‘The merchant country is not supported.’,
‘L_SEVERITYCODE0’ => ‘Error’,
‘AMT’ => ‘1.00’,
‘CURRENCYCODE’ => ‘SEK’,
‘__error’ => ‘Error #10565. Merchant country unsupported. The merchant country is not supported.’,
)

Thanks,
Annika

Hi Annika,

Thanks for the details.

It seems you’re trying to use a PayPal Pro feature, but don’t have a PayPal Pro account. And it’s to get card details on your site, but from a country that’s not supported for this. https://www.paypal-community.com/t5/PayPal-Payments-Standard/API-error-code-10565/m-p/2379027/highlight/true#M10216

Try removing the cards from the shortcode, and only take paypal for Express Checkout, so the user gets taken to their site for the checkout.

[s2Member-Pro-PayPal-Form level="1" ccaps="e" desc="Online kurs i Hawaiiansk Massage" ps="annika" lc="" cc="SEK" dg="0" ns="1" custom="annikaundeborn.se" ta="0" tp="0" tt="M" ra="1" rp="3" rt="M" rr="BN" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]

If you want to take payments on your site, Stripe is the most popular option. https://stripe.com/en-se

:slight_smile:

Thank you finally I got the card selection also at the check out. Is there a possibility to open in a new window when you press on the paypal button?

All the best,
Annika

Hi Annika,

You could customize the pro-form’s template… https://s2member.com/kb-article/s2member-pro-forms/#-customizing-pro-forms

… to add target="_blank" to the form tag. https://stackoverflow.com/questions/896724/how-to-open-a-new-window-on-form-submit

:slight_smile:

Thank you very much now everything works very well

1 Like