Return pspReference and refusalReason in onPaymentCompleted callbackSee original GitHub issue
Is your feature request related to a problem? Please describe.
My payment workflow implementation relies on
pspReference field returned by
/payments request when payment completes. Since
adyen-web starting from v
5.0.0 has simplified workflow which performs
/payments request under the hood, I cannot obtain
pspReference any more.
The same for
refusalReason field when
Describe the solution you’d like
onPaymentCompleted callback should return
pspReference along with the
resultCode field as it was in previous versions.
It should return
refusalReason as well when
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
I’ve checked it again and it seems like
metadata problem is fixed now:
Checkout API (all versions) Fixed We fixed an issue where the 3D Secure 2 flow could break when receiving an unsupported screen.colorDepth value on Google Chrome v83 or v84. We fixed an issue where metadata was not being sent back in the notification webhook.
Since the bug is fixed I’ll follow your suggestions and use
merchantOrderReference instead of
and show some generic message in a case of payment rejection.