Make a sale with a saved payment method

Learn how to make a sale transaction via the API with a customer's saved payment method
View as MarkdownOpen in Claude
Applies to:Developers

You can make a sale transaction with a customer’s saved payment method, sometimes referred to as card-on-file or a payment token.

Pass the saved method’s token in as storedMethodId when authorizing or making a sale transaction.

POST
/api/MoneyIn/getpaid
1from payabli import payabli
2from payabli.environment import payabliEnvironment
3
4client = payabli(
5 environment=payabliEnvironment.SANDBOX,
6 api_key="YOUR_API_KEY_HERE"
7)
8
9client.money_in.getpaid(
10 payment_details={
11 "total_amount": 100,
12 "service_fee": 0
13 },
14 payment_method={
15 "initiator": "payor",
16 "method": "card"
17 },
18 customer_data={
19 "customer_id": 4440
20 },
21 entry_point="f743aed24a",
22 ipaddress="255.255.255.255"
23)

See these related resources to help you get the most out of Payabli.