Return pspReference and refusalReason in onPaymentCompleted callback
See original GitHub issueIs 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 resultCode
is Refused
.
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 resultCode
is Refused
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Refusal reasons - Adyen Docs
refusalReasonCode refusalReason Description
2 Refused The transaction was refused.
3 Referral Referrals.
8 Invalid Card Number The specified card number is incorrect or invalid.
Read more >Callbacks - Zai User Guides
Callbacks are a useful way of notifying you when statuses or transactions change. ... Each of these callbacks will return the response of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve checked it again and it seems like
metadata
problem is fixed now:Since the bug is fixed I’ll follow your suggestions and use
merchantOrderReference
instead ofpspReference
and show some generic message in a case of payment rejection. Thank you.You are welcome @ahimik 👍