createOneTimePayment
MUTATIONDeprecated: Use createTransaction instead.
This call was deprecated in favor of the createTransaction mutation. The createTransaction mutation returns a more detailed response than this call.
Arguments
merchant_uidRequired
The Pay Theory unique identifier for the merchant the transaction is for.
amountRequired
The amount of the transaction. If the FeeMode is SERVICE_FEE, this is the amount of the transaction before fees.
payment_method_id
The Pay Theory unique identifier for the payment method the transaction will be charged to.
payment_method
The payment method to be used for the transaction. This is required if you are not passing in a payment_method_id.
recurring_id
The Pay Theory unique identifier for the recurring payment the transaction is for.
invoice_id
The Pay Theory unique identifier for the invoice the transaction is for.
fee
The amount of the fee that will be charged to the payor for the transaction if the FeeMode is SERVICE_FEE.
fee_mode
The fee mode on the transaction. SERVICE_FEE charges the fees to the payor. MERCHANT_FEE charges the fees to the merchant. Options are:
Values
CUSTOM_FEEINTERCHANGEMERCHANT_FEESERVICE_FEE
payment_parameters_name
-
account_code
Customer defined account code for the transaction.
reference
Customer defined reference for the transaction.
send_receipt
If the receipt should be sent to the payor. Defaults to false. It is sent to the email address on file with the payment method.
receipt_description
The description of the transaction that will be displayed on the receipt.
metadata
Custom defined JSON object to be stored with the transaction.
health_expense_type
The health expense type.
Values
CLINICALCOPAYDENTALHEALTHCARERXTRANSITVISION
additional_purchase_data
The additional purchase data.
Response
OneTimePayment
amount
Amount in minor units (for example cents).
card_brand
The card brand.
created_at
The date and time this was created.
currency
Currency code.
failure_reason
The failure reason.
last_four
The last four.
service_fee
The service fee.
status
Status value.
Values
CANCELEDFAILEDPARTIALLY_REFUNDEDPENDINGREFUNDEDRETURNEDSETTLEDSUCCEEDEDVOIDED
transaction_id
Pay Theory unique identifier for the transaction.