Skip to main content

Saved Payment Methods

Ikawaari can associate payment information with customer journeys, but the current backend surface does not publish public payment-methods endpoints for directly attaching or detaching a saved method.

Create a customer payment

When a payment is linked to a customer, create the PaymentIntent with customer or with customer_email / customer_phone, then confirm it with a payment_method object.

curl -X POST https://api.ikawaari.com/api/v1/payment-intents \
-H "Authorization: Bearer ik_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"amount": 10000,
"currency": "XOF",
"transaction_country": "SN",
"customer": "cus_xyz789"
}'
curl -X POST https://api.ikawaari.com/api/v1/payment-intents/{id}/confirm \
-H "Authorization: Bearer ik_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"payment_method": {
"type": "mobile_money",
"mobile_money": {
"country": "SN",
"operator": "orange_money",
"msisdn": "+221770000000"
}
}
}'

Do not document attach, detach, or direct payment method listing until those endpoints appear in the generated API reference.