Thanks @GermaVinsmoke, is this in Sandbox?
What error are you getting? I was able to create with the following.
Create Customer Payment Method
Request
{
"name": "Test User",
"business_vat_id": "1234566667",
"email": "testuser@rapyd.net",
"ewallet": "ewallet_6e50c83cedb7e380fad467ee63c13ce6",
"invoice_prefix": "TU-",
"metadata": {
"merchant_defined": true
},
"payment_method": {
"type": "sg_debit_visa_card",
"fields": {
"name": "Test User",
"number": "4111111111111111",
"expiration_month": "08",
"expiration_year": "24",
"cvv": "789"
},
"complete_payment_url": "https://samsung.com",
"error_payment_url": "https://apple.com"
},
"phone_number": "+14155556666"
}
Response
{
"status": {
"error_code": "",
"status": "SUCCESS",
"message": "",
"response_code": "",
"operation_id": "b10c945e-2d84-4913-bb0d-a4ec7f8e649e"
},
"data": {
"id": "cus_e595778cd4df684b9790c398e30a8f5a",
"delinquent": false,
"discount": null,
"name": "Test User",
"default_payment_method": "card_03ee569153845498755b035f9d0096e2",
"description": "",
"email": "testuser@rapyd.net",
"phone_number": "+14155556666",
"invoice_prefix": "TU-",
"addresses": [],
"payment_methods": {
"data": [
{
"id": "card_03ee569153845498755b035f9d0096e2",
"type": "sg_debit_visa_card",
"category": "card",
"metadata": null,
"image": "https://iconslib.rapyd.net/checkout/sg_debit_visa_card.png",
"webhook_url": "",
"supporting_documentation": "",
"next_action": "3d_verification",
"name": "Test User",
"last4": "1111",
"acs_check": "unchecked",
"cvv_check": "unchecked",
"bin_details": {
"type": null,
"brand": null,
"country": null,
"bin_number": "411111"
},
"expiration_year": "24",
"expiration_month": "08",
"fingerprint_token": "ocfp_2a694038316f52122bbbb3ae926cfda9",
"redirect_url": "https://sandboxcheckout.rapyd.net/3ds-payment?token=payment_b544a98f05d76c72469d5c7c00582769"
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/customers/cus_e595778cd4df684b9790c398e30a8f5a/payment_methods"
},
"subscriptions": null,
"created_at": 1648247548,
"metadata": {
"merchant_defined": true
},
"business_vat_id": "1234566667",
"ewallet": "ewallet_6e50c83cedb7e380fad467ee63c13ce6",
"complete_payment_url": "https://samsung.com",
"error_payment_url": "https://apple.com"
}
}
The complete_payment_url field is in the Payment Object and can be listed in the Payment Method Type Object using List Payment Methods by Country.
For example
{
"type": "sg_debit_visa_card",
"name": "Visa Debit",
"category": "card",
"image": "https://iconslib.rapyd.net/checkout/sg_debit_visa_card.png",
"country": "sg",
"payment_flow_type": "",
"currencies": [
"AED",
"AUD",
"BDT",
"BND",
"BRL",
"CAD",
"CHF",
"CNY",
"COP",
"CZK",
"DKK",
"EGP",
"EUR",
"FJD",
"GBP",
"HKD",
"HUF",
"IDR",
"ILS",
"INR",
"IQD",
"IRR",
"ISK",
"JPY",
"KRW",
"KWD",
"LAK",
"LKR",
"MMK",
"MOP",
"MXN",
"MYR",
"NGN",
"NOK",
"NPR",
"NZD",
"PHP",
"PKR",
"PLN",
"QAR",
"RUB",
"SAR",
"SCR",
"SEK",
"SGD",
"THB",
"TRY",
"TWD",
"USD",
"VND",
"ZAR"
],
"status": 1,
"is_cancelable": true,
"payment_options": [
{
"name": "capture",
"type": "boolean",
"regex": "",
"description": "Determines when the payment is processed for capture.",
"is_required": false,
"is_updatable": false
},
{
"name": "complete_payment_url",
"type": "string",
"regex": "",
"description": "the complete_payment_url field must be filled in.",
"is_required": true,
"is_updatable": false
},
{
"name": "error_payment_url",
"type": "string",
"regex": "",
"description": "the error_payment_url field must be filled in.",
"is_required": true,
"is_updatable": false
}