Nhảy tới nội dung

Payment Notification

Use Case

You will receive a notification whenever a payment process is completed, successful or not. Fundiin will send a POST message to the Notification URL you provide us.

To ensure that a payment has been securely processed you will need to validate the signature on header using your secretKey and clientId in the same manner you compute the signature on header for a request. Request Header

Request

ParameterTypeRequiredDescription
merchantIdStringFundiin provides MID as a unique identifier to each merchant.
referenceIdStringOrder number for the charge transaction.
storeIdStringThe store Id that is processing the payment
amount.valueNumberThe amount of the transaction
amount.currencyStringVND
paymentTransIdStringPayment Id is a number generated by Fundiin to identify a partner's transaction transaction.
paymentMethodStringVISA/MASTER, ATM, WALLET, TRANSFER_VA, STORE.
This parameter is returned if the value of the paymentStatus is SUCCESS
paymentChannelStringAPP, POS, WEB.
This parameter is returned if the value of the paymentStatus is SUCCESS
paymentStatusStringPENDING, SUCCESS, FAIL.
notificationTypeStringPAYMENT_STATUS.
resultStatusStringResult Status
resultMsgStringThe result message which contains information about the result.
customerIdStringFundiin User ID in case user is logged in via Fundiin credentials.
paymentTimeStringExact Time of Transaction Completion Format: YYYY-MM-DD hh:mm:ss

Example Request

Response

204 No Content

Result Status & Messages

Status codeDescriptionAction to take
SUCCESSThe transaction was successfully.Proceed with any necessary post-transaction activities.
PENDINGThe payment is in processing.Wait for the payment processing to complete. You may periodically check the payment status.
EXPIREDThe time period the customer had for completing the payment has expired.Prompt the customer to restart the payment process or initiate a new payment.
CANCELLEDThe payment was cancelled before processing was completed.Inform the customer that the payment was canceled and provide instructions for resuming or reinitiating the payment.
USER_KYC_NOT_QUALIFIEDUser is not qualified for KYC verification.Advise the user to complete the necessary KYC verification or provide alternative payment methods if available.
RISK_REJECTThe request is rejected because of risk control.Review the transaction for potential risks and consider alternative payment methods or further risk assessment.
ERROR_GENERALDeclined due to general reasons other than the specific decline error codes provided.Contact Fundiin support for assistance in identifying and resolving the general issue.