Skip to content

Conversation

deepanshu-iiitu
Copy link
Contributor

@deepanshu-iiitu deepanshu-iiitu commented Dec 11, 2024

Type of Change

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

Description

Add referrer data in Airwallex's Create Payment Intent request in order to whitelist Hyperswitch for processing raw card details.

Additional Changes

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

Motivation and Context

#6807

How did you test it?

Testing can be done by verifying payment logs for Airwallex payments
Screenshot 2024-12-11 at 5 28 08 PM
Payments Request:

curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_cEY8PgIkrpv1Y8pe0oVj6izFmGmxSlhrtV78ead9czZGWd5vp4h2GK8iLtenibs7' \
--data '{
    "amount": 8059,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    "authentication_type": "no_three_ds",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "4035 5010 0000 0008",
            "card_exp_month": "10",
            "card_exp_year": "25",
            "card_holder_name": "Joseph Doe",
            "card_cvc": "123"
        }
    }
}'

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

@deepanshu-iiitu deepanshu-iiitu added A-connector-integration Area: Connector integration C-feature Category: Feature request or enhancement labels Dec 11, 2024
@deepanshu-iiitu deepanshu-iiitu self-assigned this Dec 11, 2024
@deepanshu-iiitu deepanshu-iiitu requested a review from a team as a code owner December 11, 2024 11:54
Copy link

semanticdiff-com bot commented Dec 11, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs  0% smaller

@likhinbopanna likhinbopanna added this pull request to the merge queue Dec 16, 2024
Merged via the queue into main with commit ed276ec Dec 16, 2024
29 of 30 checks passed
@likhinbopanna likhinbopanna deleted the airwallex-whitelist branch December 16, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration C-feature Category: Feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] [AIRWALLEX] Add refferer data to whitelist hyperswitch
4 participants