This API endpoint cancels the payment intent of the checkout session that was authorised by the user. This action is only valid for sessions where capture is false.
AlertA payment intent object can only be cancelled when the
statusis inrequires_payment_method,authorised, orrequires_action.If it is in
authorised, the remainingamountwill automatically be refunded.
Related guide(s): Payment intent ID and Capture method
Successful response payload data
Parameter  | Data type  | Description  | 
|---|---|---|
  | 
  | The ID of the payment intent. More information can be found in the Payment intent ID page.  | 
  | 
  | The total amount of all items after discounts and taxes.  | 
  | 
  | The three-letter ISO currency code of the payment. Currently, only supports MYR.  | 
  | 
  | The partner’s generated ID, which generated this transaction.  | 
  | 
  | The payment method for this session.  | 
  | 
  | The family the payment method belongs to.  | 
  | 
  | The payment method type.  | 
  | 
  | The payment method brand.  | 
  | 
  | ⚠️Required for third party acquirers This will be used to display on our checkout page and e-receipt.  | 
  | 
  | The name of partners' merchant.  | 
  | 
  | The partner's merchant's ID provided by partners.  | 
  | 
  | An identifier to see if the transaction is a captured transaction. More information can be found in the capture method page.  | 
  | 
  | An object to store additional information about the transaction (e.g: order details, etc.).  | 
  | 
  | Name and description of the item.  | 
  | 
  | Item variation.  | 
  | 
  | The price per item.  | 
  | 
  | The number of items purchased.  | 
  | 
  | Total price = item quantity x item unit price  | 
  | 
  | The total price after discount.  | 
  | 
  | The total amount of discount given.  | 
  | 
  | The total amount before applying any taxes or discount, fee, etc.  | 
  | 
  | The shipping fee (applicable for e-commerce).  | 
  | 
  | The code for the pump being operated.  | 
  | 
  | The name of the station where the operating pump is located.  | 
