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, PaymentDetail, PayMethodCredit, PayorDataRequest
2
3client = payabli(
4 api_key="YOUR_API_KEY_HERE",
5)
6
7client.money_in.getpaid(
8 payment_details=PaymentDetail(
9 total_amount=100,
10 service_fee=0,
11 ),
12 payment_method=PayMethodCredit(
13 initiator="payor",
14 method="card",
15 ),
16 customer_data=PayorDataRequest(
17 customer_id=4440,
18 ),
19 entry_point="f743aed24a",
20 ipaddress="255.255.255.255",
21)

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