Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Reference string length causes GrabPay Test Transaction to fail #38

Open
shauncAdyen opened this issue Mar 21, 2023 · 1 comment

Comments

@shauncAdyen
Copy link


name: 🐞 Bug
about: File a bug/issue
title: '[BUG] Reference string length causes GrabPay Test Transaction to fail'


Recommendation

The docs indicates a maximum string length of 80 for reference parameter. When reference length is replaced with a shorter string, GrabPay Drop-in works as expected.

Screenshot 2023-03-21 at 11 06 01 AM

Current Behavior:

Selecting GrabPay Drop-in option on GitPod instance returns a 422 error with message: "reference='Reference 0e852a1a-f187-49e9-9092-221772cbd46c' given is invalid.

Expected Behavior:

Selecting GrabPay Drop-in option on GitPod instance should redirect user to weblogin.grab.com to authenticate user and continue with checkout flow.

Steps To Reproduce:

  1. Create test merchant account on Customer Area
  2. Add GrabPay_SG payment method to test merchant account
  3. Open ./app/main/sessions.py file
  4. Change request['amount'] = {"value": "10000", "currency": "EUR"} to request['amount'] = {"value": "10000", "currency": "SGD"}
  5. Change request['countryCode'] = "NL" to request['countryCode'] = "SG"
  6. Run ./start.sh on GitPod instance
  7. Visit the URL generated by GitPod instance
  8. Click on Drop-in
  9. Select GrabPay as the payment method you want to check out with

Environment:

requirements.txt

  • flask
  • Adyen == 7.1.1
  • python-dotenv===0.21.1

Browser

  • Chrome: v111.0
@gcatanese
Copy link
Contributor

@shauncAdyen Thanks for creating the issue. I can replicate the problem (thanks to all the details and info in your issue), I will try now to upgrade the Drop-in to the latest version as the first step. I will keep you posted. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants