Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

NO_PAYMENTS_PRODUCTS_AVAILABLE #5

Open
hhoangnl opened this issue Dec 28, 2019 · 4 comments
Open

NO_PAYMENTS_PRODUCTS_AVAILABLE #5

hhoangnl opened this issue Dec 28, 2019 · 4 comments

Comments

@hhoangnl
Copy link

{
"errorId" : "5e07d8582c10c9eabd6d913200f95956",
"errors" : [ {
"code" : "1406",
"id" : "NO_PAYMENT_PRODUCTS_AVAILABLE",
"category" : "CONNECT_PLATFORM_ERROR",
"message" : "NO_PAYMENT_PRODUCTS_AVAILABLE",
"httpStatusCode" : 400
} ]
}

I get this response a lot in the Sandbox environment. How to resolve this?

@rikvanthof
Copy link

You are probably sending in a combination of a currencyCode and a billing countryCode that doesn’t have any payment products configured on our sandbox accounts. Try changing these two properties in your request.

@hhoangnl
Copy link
Author

For instance, PostFinance Card is only supported in Switzerland. I used both CHF and CH and get the error.

But basically it means there is no way to test all the mentioned payment products in the sandbox environment...?

{
	"order": {
		"amountOfMoney": {
			"amount": 1000,
			"currencyCode": "CHF"
		},
		"customer": {
		    
			"billingAddress": {
				"countryCode": "CH"
			}
		}
	},
	"redirectPaymentMethodSpecificInput": {
		"redirectionData": {
			"returnUrl": "https://google.com"
		},
		"paymentProductId": 3201
	}
}

@rikvanthof
Copy link

You are indeed correct that not all payment products can be tested on our sandbox environment. If you want to test out PostFinance Card I would suggest you get a preproduction account. On such an account you can have any payment product configured.
The purpose of the sandbox is for you to be able to try out the SDKs, the API, webhooks and the behavior of the MyCheckout hosted payment pages. The setup is generic, fixed and just covers the basics.

@hhoangnl
Copy link
Author

hhoangnl commented Dec 29, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants