Post Payment
Post Payment
Once the payment is done, call the "finishPayment()" method of NucleiSDK object. Pass the same nucleiPaymentInitData.nucleiPayment along with Payment Status. This will redirect the user to the respective category order details page where order information, transaction information will be shown.
Refer below code,
Application.getNucleiSDK().finishPayment(nucleiPayment, NucleiPaymentStatus.SUCCESS);
Application.getNucleiSDK().finishPayment(nucleiPayment, NucleiPaymentStatus.FAILURE);
Application.getNucleiSDK().finishPayment(nucleiPayment, NucleiPaymentStatus.CANCELED);
NOTE: Although the bank app is communicating the status of payment to the SDK here the SDK will wait to get the real time status from Nuclei server before displaying the same to the user.