Skip to content

Conversation

@iemyashasvi
Copy link
Contributor

Description

Added Airwallex connector integration
implements

  • createaccesstoken
  • auth
  • psync

Motivation and Context

Additional Changes

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

How did you test it?

Tested via GRPCurls and HS-UCS cypress

Auth Request:
grpcurl -plaintext \
  -H "x-connector: airwallex" \
  -H "x-auth: body-key" \
  -H "x-api-key: <REDACTED_API_KEY>" \
  -H "x-key1: <REDACTED_KEY1>" \
  -H "x-merchant-id: <REDACTED_MERCHANT_ID>" \
  -H "x-reference-id: <REDACTED_REFERENCE_ID>" \
  -d '{
    "request_ref_id": {
      "id": "<REDACTED_REQUEST_REF_ID>"
    },
    "amount": 10000,
    "minor_amount": 10000,
    "currency": "USD",
    "capture_method": "AUTOMATIC",
    "auth_type": "NO_THREE_DS",
    "payment_method": {
      "card": {
        "card_number": {"value": "<REDACTED_CARD_NUMBER>"},
        "card_cvc": {"value": "<REDACTED_CVC>"},
        "card_exp_month": {"value": "12"},
        "card_exp_year": {"value": "2025"},
        "card_network": "VISA"
      }
    },
    "address": {},
    "connector_customer_id": "<REDACTED_CONNECTOR_CUSTOMER_ID>",
    "return_url": "https://example.com/return",
    "webhook_url": "https://example.com/webhook",
    "order_category": "pay",
    "enrolled_for_3ds": false,
    "request_incremental_authorization": false,
    "metadata": {
      "order_id": "<REDACTED_ORDER_ID>",
      "customer_email": "<REDACTED_EMAIL>",
      "description": "Test payment for Airwallex with OAuth"
    }
  }' \
  localhost:8000 ucs.v2.PaymentService/Authorize

Response:

{
  "transactionId": {
    "id": "<REDACTED_TRANSACTION_ID>"
  },
  "status": "CHARGED",
  "incrementalAuthorizationAllowed": false,
  "rawConnectorResponse": {
    "value": "<REDACTED_RAW_CONNECTOR_RESPONSE>"
  },
  "statusCode": 200,
  "responseHeaders": {
    "content-length": "1639",
    "content-type": "application/json",
    "date": "Mon, 01 Dec 2025 21:42:31 GMT",
    "server": "APISIX"
  },
  "state": {
    "accessToken": {
      "token": "<REDACTED_ACCESS_TOKEN>",
      "tokenType": "Bearer"
    },
    "connectorCustomerId": "<REDACTED_CONNECTOR_CUSTOMER_ID>"
  },
  "rawConnectorRequest": {
    "value": "<REDACTED_RAW_CONNECTOR_REQUEST>"
  }
}

PSync Request:
grpcurl -plaintext \
  -H "x-connector: airwallex" \
  -H "x-auth: body-key" \
  -H "x-api-key: <REDACTED_API_KEY>" \
  -H "x-key1: <REDACTED_KEY1>" \
  -H "x-merchant-id: <REDACTED_MERCHANT_ID>" \
  -H "x-reference-id: <REDACTED_REFERENCE_ID>" \
  -d '{
    "request_ref_id": {
      "id": "<REDACTED_REQUEST_REF_ID>"
    },
    "transaction_id": {
      "id": "<REDACTED_TRANSACTION_ID>"
    },
    "amount": 10000,
    "currency": "USD"
  }' \
  localhost:8000 ucs.v2.PaymentService/Get

Response:

{
  "transactionId": {
    "id": "<REDACTED_TRANSACTION_ID>"
  },
  "status": "CHARGED",
  "networkTxnId": "<REDACTED_NETWORK_TRANSACTION_ID>",
  "rawConnectorResponse": {
    "value": "<REDACTED_RAW_CONNECTOR_RESPONSE>"
  },
  "statusCode": 200,
  "responseHeaders": {
    "content-length": "2102",
    "content-type": "application/json",
    "date": "Mon, 01 Dec 2025 21:58:43 GMT",
    "server": "APISIX"
  },
  "state": {
    "accessToken": {
      "token": "<REDACTED_ACCESS_TOKEN>",
      "tokenType": "Bearer"
    }
  },
  "rawConnectorRequest": {
    "value": "<REDACTED_RAW_CONNECTOR_REQUEST>"
  }
}

@iemyashasvi iemyashasvi requested review from a team as code owners December 1, 2025 21:59
@iemyashasvi iemyashasvi linked an issue Dec 1, 2025 that may be closed by this pull request
@iemyashasvi iemyashasvi self-assigned this Dec 2, 2025
@iemyashasvi iemyashasvi force-pushed the airwallex-grace-implementation branch from f4788ab to 99c89d2 Compare December 4, 2025 14:49
@iemyashasvi iemyashasvi marked this pull request as draft December 4, 2025 17:39
@iemyashasvi iemyashasvi force-pushed the airwallex-grace-implementation branch 2 times, most recently from f450e19 to 10a99de Compare December 5, 2025 13:35
@shuklatushar226 shuklatushar226 marked this pull request as ready for review December 5, 2025 13:41
shuklatushar226
shuklatushar226 previously approved these changes Dec 5, 2025
@iemyashasvi iemyashasvi force-pushed the airwallex-grace-implementation branch from 5bc324b to fa9165d Compare December 8, 2025 11:14
Co-authored-by: DEEPANSHU BANSAL <[email protected]>
@maverox maverox added this pull request to the merge queue Dec 8, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 8, 2025
Co-authored-by: yashasvi.kapil <[email protected]>
Co-authored-by: DEEPANSHU BANSAL <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 8, 2025
@maverox maverox added this pull request to the merge queue Dec 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 8, 2025
@maverox maverox added this pull request to the merge queue Dec 8, 2025
Merged via the queue into main with commit f43fbfd Dec 8, 2025
11 checks passed
@maverox maverox deleted the airwallex-grace-implementation branch December 8, 2025 14:17
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.

Dec 2 - AIRWALLEX INTEGRATION

5 participants