This request allows you to process a transaction through Repay.
Click here to learn more about this request
Secure Payments allows users to process payments through Repay. Note the following when using this request:
A Repay Processor is required by this request. Use the POST
Create Repay processor request to create one. If a Repay Processor exists, use the GET
all processors request to retrieve the processor ID.
A customer's Payment Profile token is required by this request. Use the GET
payment profile information request to see this token.
Repay processes both ACH and bank card transactions. Choose only one of the card
or checking-account
objects depending on the type of the transaction.
For more information, see our Repay article.
{
"transaction":
{
"amount": 123.45,
"funds-direction": "FromCustomer",
"sec-code": "WEB"
},
"metadata": {
"origin": "origin",
"username": "username"
},
"checking-account": {
"token": "QVFJREFIaStNYmI..."
}
}
{
"transaction":
{
"amount": 123.45,
"funds-direction": "ToCustomer",
"sec-code": "WEB"
},
"metadata": {
"origin": "origin",
"username": "username"
},
"checking-account": {
"token": "QVFJREFIaStNYmI..."
}
}
{
"transaction":
{
"amount": 123.45,
"funds-direction": "FromCustomer",
"sec-code": "WEB"
},
"metadata": {
"origin": "origin",
"username": "username"
},
"card": {
"token": "QVFJREFIaStNYmI..."
}
}
{
"transaction":
{
"amount": 123.45,
"funds-direction": "ToCustomer",
"sec-code": "WEB"
},
"metadata": {
"origin": "origin",
"username": "username"
},
"card": {
"token": "QVFJREFIaStNYmI..."
}
}
Results
Returns the transaction
, account
, and processor
objects after a successfully processed Repay transaction. An error results in a message
and context
object indicating the type of error (e.g. invalid payment profile token).