SinglePaymentRequest class contains the data required to initiate a single payment transaction using PayWithPayMaya.
Properties
Transaction amount details including value, currency, and optional fee breakdown.
Reference number assigned by the merchant to identify a transaction.
Set of redirect URLs upon process completion (success, failure, cancel).
Additional metadata about the payment transaction.
Related Classes
TotalAmount
Contains information about transaction amount.Payment amount to be charged.
Currency code (e.g., “PHP”, “USD”).
Breakdown of fees.
AmountDetails
Optional breakdown of fees.Discount amount.
Service charge amount.
Shipping fee amount.
Tax amount.
Subtotal amount.
RedirectUrl
Redirect URL model defining URLs used to redirect to specific pages once the payment process is done.Success URL.
Failure URL.
Cancel URL.