Why can’t I delete the default payment method for my customer?
Hi @Tu_Mai, are you using the customer ID, starting with cus_
and the payment method ID starting with card_
or other_
?
First I used List Payment Methods of Customer before and after to confirm the payment method.
Then I used Delete Payment Method.
You can see the path parameters and response below
customer:
cus_5423810ce7f00e2108ad1672c22ede23
payment_method:
card_69bd5176480d738fe768477246cac035
Delete Payment Method Response
"status": {
"error_code": "",
"status": "SUCCESS",
"message": "",
"response_code": "",
"operation_id": "da8a3dc2-2bfb-4716-a2f7-d2ebd9a73908"
},
"data": {
"deleted": true,
"id": "card_69bd5176480d738fe768477246cac035"
}
}
Okay. One more question. Can we save the card token (“card_69bd5176480d738fe768477246cac035”) without PCI certification?
Yes, the token can be saved without PCI certification. The token is a proxy for the customer’s card details. You can create payments with Rapyd just using the token.
Are you using Hosted Checkout or the Checkout Toolkit Integration?
I’m using Hosted Checkout. Thank you so much.