PayuPaymentInfo
Type: schema
TypeScript Definition
typescript
PayuPaymentInfo: {{
key: string;
txnid: string;
/** @description Payment amount as a decimal string with two fractional digits. */
amount: string;
productinfo: string;
/** @description The billing first name, or null when the order has no billing address (a till sale without one). */
firstname: string | null;
lastname?: string;
/** @description The billing email, or null when the order has no billing address (a till sale without one). */
email: string | null;
/** @description The billing phone, or null when the order has no billing address (a till sale without one). */
phone: string | null;
/**
* @description To be used in case we want to take consent for subscription payment.
* To create consent for subscription, value of this parameter must be 1.
* @constant
*/
si?: 1;
/** @description JSON-encoded subscription consent. Contains `billingAmount` as a decimal string, `billingCurrency` `INR`, `billingCycle` `ADHOC`, and `paymentStartDate` and `paymentEndDate` as dates. Pass this string unchanged with the payment. */
si_details?: string;
/** @description return url in case of payment failure. */
furl: string;
/** @description return url in case of payment success. */
surl: string;
hash: string;
};
/** PayuPaymentMethodGroup */
}OpenAPI Schema
json
{
"type": "object",
"properties": {
"key": {
"type": "string"
},
"txnid": {
"type": "string"
},
"amount": {
"description": "Payment amount as a decimal string with two fractional digits.",
"type": "string"
},
"productinfo": {
"type": "string"
},
"firstname": {
"description": "The billing first name, or null when the order has no billing address (a till sale without one).",
"type": [
"string",
"null"
]
},
"lastname": {
"type": "string"
},
"email": {
"description": "The billing email, or null when the order has no billing address (a till sale without one).",
"type": [
"string",
"null"
]
},
"phone": {
"description": "The billing phone, or null when the order has no billing address (a till sale without one).",
"type": [
"string",
"null"
]
},
"si": {
"description": "To be used in case we want to take consent for subscription payment.\nTo create consent for subscription, value of this parameter must be 1.",
"type": "integer",
"const": 1
},
"si_details": {
"description": "JSON-encoded subscription consent. Contains `billingAmount` as a decimal string, `billingCurrency` `INR`, `billingCycle` `ADHOC`, and `paymentStartDate` and `paymentEndDate` as dates. Pass this string unchanged with the payment.",
"type": "string",
"contentMediaType": "application/json"
},
"furl": {
"description": "return url in case of payment failure.",
"type": "string"
},
"surl": {
"description": "return url in case of payment success.",
"type": "string"
},
"hash": {
"type": "string"
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/PayuPaymentInfo"
},
"required": [
"key",
"txnid",
"amount",
"productinfo",
"firstname",
"email",
"phone",
"furl",
"surl",
"hash"
],
"title": "PayuPaymentInfo"
}Auto-generated from OpenAPI spec and TypeScript definitions