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

fix(payment_link): move redirection fn to global scope for open links #5494

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

kashif-m
Copy link
Contributor

@kashif-m kashif-m commented Jul 31, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Described in #5495

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

How did you test it?

1. Create non 3DS open payment link curl --location 'https://sandbox.hyperswitch.io/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: API_KEY' \ --data-raw '{ "customer_id": "cus_05845u0qSuOENDnHLqTl", "amount": 100, "currency": "USD", "payment_link": true, "authentication_type": "no_three_ds", "connector": [ "stripe" ], "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "CA", "zip": "94122", "country": "US", "first_name": "John", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" } }, "email": "john.doe@example.com", "session_expiry": 1000000, "return_url": "https://google.com", "payment_link_config": { "theme": "#14356f", "logo": "https://hyperswitch.io/favicon.ico", "seller_name": "HyperSwitch Inc." } }'

Complete the payment, and wait for redirection

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@kashif-m kashif-m added C-bug Category: Bug Payment Links labels Jul 31, 2024
@kashif-m kashif-m self-assigned this Jul 31, 2024
@kashif-m kashif-m requested a review from a team as a code owner July 31, 2024 14:33
@kashif-m kashif-m linked an issue Jul 31, 2024 that may be closed by this pull request
2 tasks
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Jul 31, 2024
Merged via the queue into main with commit 7ddfbf5 Jul 31, 2024
30 checks passed
@Gnanasundari24 Gnanasundari24 deleted the fix-payment-link-redirection branch July 31, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Open payment links does not redirect to status page
4 participants