The payment object
This is an object representing a payment.
Attributes
- ID Integer
- Id of the payment record
- payment_token String
- payment token received by the payment gateways
- payment_type String
- payment type of the payment, it can be `razorpay`, `razorpay_recurring`, `paypal`, `paypal_recurring` etc.
- amount_cents String
- Amount which paid to payment gateways
- amount_currency String
- Currency in which amount has been paid to payment gateways
- metadata Json
- metadata if any present
{
"id": 581,
"payment_type": "razorpay",
"subscriber_id": 374,
"amount_cents": 2510,
"amount_currency": "USD",
"payment_token": "pay_HOU0WmYdPDxQo2",
"metadata"=>{}
}