For our customers in Colombia we want to offer the Cash payment methods on the checkout page.
First we make the call to “/v1/payment_methods/country?country=CO” to get all the payment methods available for Colombia, and the response includes all the Cash Payment Methods. After that we pass them in the “payment_method_types_include” parameter for the “/v1/checkout” call to create the checkout page.
However we get “ERROR_HOSTED_PAGE_UNRECOGNIZED_PAYMENT_METHOD_TYPES_TO_INCLUDE” error on the “/v1/checkout” call. We are following the instructions from the documentation, first calling the “Get payment methods by country” API method and then calling the create checkout page with the payment methods provided.
Why does the “/v1/payment_methods/country?country=CO” API method return methods which are then not valid for the “/v1/checkout” API call? How can we include the cash payment methods for our customers on the checkout page?
Thank you Legato for your response. Yes, I did all of the settings you suggested and it still didn’t work.
What did the trick was to specify a “customer” in the body of the request for the checkout page. Seems like some payment methods require a customer in order to work and also the currency to be the local currency.
It would be nice if the documentation for the Checkout Page Object would specify for the customer field that it is mandatory for some payment methods and not only " ID of the ‘customer’ object. String starting with cus_ . When used, the customer has the option to save card details for future purchases.".
This Error I have also encountered. This is because the currency that you are accepting through that payment method may not have been fully integrated by the Rapyd. Please try doing it with some other currency.
Thank you for the response. Indeed after I changed the currency to local currency and also providing the “customer” field in the checkout page request, the cash payment methods worked and payments were created successfully.
The payment method I tested with is “co_efecty_cash”, cash payment method for Colombia.
While in the sandbox it worked when I added in the request body of the checkout page the “requested_currency => COP”, in production it didn’t work until I also added the “customer” field.