PaymentSuccessfulv1.0.0
Properties
id* :
Unique identifier of the payment
clientReferenceId* :
A unique string to reference the Checkout Session. This can be a Customer ID, Subscription ID, Subscription type, User action or similar. This value is generated and passed from the service/user that has initiated the creation of this payment, that can be later used to reconcile the session with your internal systems.
eg: for creating a subscription, the clientReferenceId will be the action type
CREATE_SUBSCRIPTION
amount* :
Amount collected for the payment
discount* :
Discount applied for the payment.
vat* :
Vat collected for the payment.
paidAmount* :
Actual paid amount after calculating the discount and vat.
coupon* :
Coupon used for the payment.
currency* :
Currency used in the payment. Value can be one of below.
- BHD
- SAR
- AED
- KWD
- QAR
- OMR
paymentMethod* :
Payment method used. Value can be one of the below.
- cash
- cc
- benefit
- mada
- applePay
- knet
- naps
- bnpl
userId* :
The ID of the subscriber who has done the payment
name* :
The name of the subscriber who has done the payment
phoneNumber* :
The phone number of the subscriber who has done the payment
email* :
The email of the subscriber who has done the payment
paymentServiceProvider* :
Name of the Payment Service Provider used.
pspCardID* :
Id of the Tokenized card used. Issued by the Payment Service Provider.
pspUserId* :
Id of the user created on the Payment Service Provider.
cardPrefix* :
First six number of the card used by the user for the payment.
metadata* :
Set of key-value pairs that can be set by initiator service/user. This can be useful for storing additional information about the object in a structured format.
createdAt* :
The date when the user created the checkout session.
openapi: 3.0.0
info:
version: "1.0.0"
title: PaymentSuccessful
paths: {}
components:
schemas:
PaymentSuccessful:
type: object
required:
- metadata
- data
properties:
data:
"$ref": "#/components/schemas/Data"
metadata:
"$ref": "#/components/schemas/Metadata"
Data:
type: object
required:
- id
- clientReferenceId
- paymentServiceProvider
- amount
- discount
- vat
- paidAmount
- coupon
- currency
- country
- brand
- paymentMethod
- userId
- name
- phoneNumber
- email
- pspUserId
- pspCardID
- cardPrefix
- metadata
- createdAt
properties:
id:
type: string
clientReferenceId:
type: string
amount:
type: number
format: double
discount:
type: number
vat:
type: number
paidAmount:
type: number
format: double
coupon:
type: string
currency:
type: string
country:
type: string
brand:
type: string
paymentMethod:
type: string
userId:
type: string
name:
type: string
email:
type: string
phoneNumber:
type: string
paymentServiceProvider:
type: string
pspCardID:
type: string
pspUserId:
type: string
cardPrefix:
type: string
metadata:
type: object
createdAt:
type: string
format: date-time
Metadata:
type: object
required:
- serviceFunction
- version
properties:
serviceFunction:
type: string
version:
type: string