post
https://{subdomain}.recurly.com/v2/transactions
The Recurly API provides a shortcut for creating an invoice, charge, and optionally account, and processing the payment immediately. When creating an account all of the required account attributes must be supplied. When charging an existing account only the account_code must be supplied.
Using stored billing info
You may create a transaction without specifying billing information if an account already has stored billing information.
xml
PHP
Ruby
Python
text
<transaction>
<amount_in_cents>100</amount_in_cents>
<currency>USD</currency>
<account>
<account_code>1</account_code>
</account>
</transaction>$transaction = new Recurly_Transaction();
$transaction->amount_in_cents = 100; // $1.00
$transaction->currency = 'USD';
$transaction->account = new Recurly_Account();
$transaction->account->account_code = '1';
$transaction->create();transaction = account.transactions.create(
:amount_in_cents => 1_00,
:currency => 'USD',
:account => { :account_code => '1' }
)transaction = Transaction(
amount_in_cents=100,
currency='USD',
account=Account(account_code='1')
)
transaction.save()var transaction = new Transaction("1", 100, "USD"); // account code, unit amount in cents, currency
transaction.Create();Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…