Skip to content

Commit 954fa23

Browse files
committed
Merge branch 'main' into pm-details-doc
2 parents 11bf497 + 0e3a9b6 commit 954fa23

File tree

115 files changed

+5966
-705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+5966
-705
lines changed

.github/workflows/cypress-tests-runner.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
CARGO_INCREMENTAL: 0
1515
CARGO_NET_RETRY: 10
1616
PAYMENTS_CONNECTORS: "cybersource stripe"
17+
PAYOUTS_CONNECTORS: "adyenplatform wise"
1718
RUST_BACKTRACE: short
1819
RUSTUP_MAX_RETRIES: 10
1920
RUN_TESTS: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}
@@ -127,7 +128,7 @@ jobs:
127128
CONNECTOR_AUTH_PASSPHRASE: ${{ secrets.CONNECTOR_AUTH_PASSPHRASE }}
128129
CONNECTOR_CREDS_S3_BUCKET_URI: ${{ secrets.CONNECTOR_CREDS_S3_BUCKET_URI}}
129130
DESTINATION_FILE_NAME: "creds.json.gpg"
130-
S3_SOURCE_FILE_NAME: "6f8289a9-6da0-433b-8a24-18d4d7257b7f.json.gpg"
131+
S3_SOURCE_FILE_NAME: "aa328308-b34e-41b7-a590-4fe45cfe7991.json.gpg"
131132
shell: bash
132133
run: |
133134
mkdir -p ".github/secrets" ".github/test"

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,40 @@ All notable changes to HyperSwitch will be documented here.
44

55
- - -
66

7+
## 2024.12.23.0
8+
9+
### Features
10+
11+
- **connector:** [JPMORGAN] add Payment flows for cards ([#6668](https://github.com/juspay/hyperswitch/pull/6668)) ([`adcddd6`](https://github.com/juspay/hyperswitch/commit/adcddd643c002a5fe3e7c50c0f78fa5a46f210e7))
12+
- **payment_methods_v2:** Added Ephemeral auth for v2 ([#6813](https://github.com/juspay/hyperswitch/pull/6813)) ([`24401bc`](https://github.com/juspay/hyperswitch/commit/24401bc16f9677ce0f5fa70d739e5e6885c7e907))
13+
- **payments_v2:** Implement payments capture v2 ([#6722](https://github.com/juspay/hyperswitch/pull/6722)) ([`977cb70`](https://github.com/juspay/hyperswitch/commit/977cb704e7dcf35d0fa6bc0e3c6d335ad0601521))
14+
- **router:**
15+
- Add /relay endpoint ([#6870](https://github.com/juspay/hyperswitch/pull/6870)) ([`22de8ad`](https://github.com/juspay/hyperswitch/commit/22de8ad132811b636fdb2594649e40b90810f564))
16+
- Add db interface for `/relay` ([#6879](https://github.com/juspay/hyperswitch/pull/6879)) ([`0f8b0b3`](https://github.com/juspay/hyperswitch/commit/0f8b0b3bc854be62942a77d08340510312157c67))
17+
18+
### Bug Fixes
19+
20+
- **connector:**
21+
- Paypal BankRedirects (Ideal/EPS) ([#6864](https://github.com/juspay/hyperswitch/pull/6864)) ([`dcd51a7`](https://github.com/juspay/hyperswitch/commit/dcd51a7fb8df673cc74130ee732542b55783602f))
22+
- [STRIPE] fix stripe mandate ([#6899](https://github.com/juspay/hyperswitch/pull/6899)) ([`9f2ce05`](https://github.com/juspay/hyperswitch/commit/9f2ce05b2591da0d757b267800f42b69fc38e3ee))
23+
- Update mandate PMT configs for Mandate Supported Connectors ([#6903](https://github.com/juspay/hyperswitch/pull/6903)) ([`02f0824`](https://github.com/juspay/hyperswitch/commit/02f0824d303fb9a36ee54123f52176014613a992))
24+
- Cypress reports generation ([#6894](https://github.com/juspay/hyperswitch/pull/6894)) ([`81b324c`](https://github.com/juspay/hyperswitch/commit/81b324caf1bef4f621de30824bfb1f05ef984362))
25+
26+
### Refactors
27+
28+
- **connector:** [Airwallex] add device_data in payment request ([#6881](https://github.com/juspay/hyperswitch/pull/6881)) ([`573974b`](https://github.com/juspay/hyperswitch/commit/573974b3a5d53b279bd3959e400ac682aaacd474))
29+
- **customers_v2:** Include minor fixes for customer v2 flows ([#6876](https://github.com/juspay/hyperswitch/pull/6876)) ([`5cdeaf8`](https://github.com/juspay/hyperswitch/commit/5cdeaf8e6002ad087dba2a562f86b51e97516d29))
30+
- **dynamic_routing:** Add col payment_method_type in dynamic_routing_stats ([#6853](https://github.com/juspay/hyperswitch/pull/6853)) ([`492fd87`](https://github.com/juspay/hyperswitch/commit/492fd871a14e60e02f17fe073544bc40e79a7220))
31+
- **grpc:** Send `x-tenant-id` and `x-request-id` in grpc headers ([#6904](https://github.com/juspay/hyperswitch/pull/6904)) ([`dc0a92d`](https://github.com/juspay/hyperswitch/commit/dc0a92dc108c91d6c5f998af417e382aa7a0d9f1))
32+
33+
### Miscellaneous Tasks
34+
35+
- **cypress:** Payout - fix test cases for adyenplatform bank ([#6887](https://github.com/juspay/hyperswitch/pull/6887)) ([`7540b74`](https://github.com/juspay/hyperswitch/commit/7540b7434766ff9dfa1aa2a56013ac89429dd1e6))
36+
37+
**Full Changelog:** [`2024.12.19.1...2024.12.23.0`](https://github.com/juspay/hyperswitch/compare/2024.12.19.1...2024.12.23.0)
38+
39+
- - -
40+
741
## 2024.12.19.1
842

943
### Features

api-reference-v2/openapi_spec.json

Lines changed: 104 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -5613,6 +5613,21 @@
56135613
"type": "string",
56145614
"description": "User-agent of the browser",
56155615
"nullable": true
5616+
},
5617+
"os_type": {
5618+
"type": "string",
5619+
"description": "The os type of the client device",
5620+
"nullable": true
5621+
},
5622+
"os_version": {
5623+
"type": "string",
5624+
"description": "The os version of the client device",
5625+
"nullable": true
5626+
},
5627+
"device_model": {
5628+
"type": "string",
5629+
"description": "The device model of the client",
5630+
"nullable": true
56165631
}
56175632
}
56185633
},
@@ -6495,88 +6510,6 @@
64956510
"greater_than_equal"
64966511
]
64976512
},
6498-
"ConfirmIntentAmountDetailsResponse": {
6499-
"type": "object",
6500-
"required": [
6501-
"currency",
6502-
"external_tax_calculation",
6503-
"surcharge_calculation",
6504-
"net_amount",
6505-
"amount_capturable"
6506-
],
6507-
"properties": {
6508-
"order_amount": {
6509-
"type": "integer",
6510-
"format": "int64",
6511-
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
6512-
"example": 6540,
6513-
"minimum": 0
6514-
},
6515-
"currency": {
6516-
"$ref": "#/components/schemas/Currency"
6517-
},
6518-
"shipping_cost": {
6519-
"allOf": [
6520-
{
6521-
"$ref": "#/components/schemas/MinorUnit"
6522-
}
6523-
],
6524-
"nullable": true
6525-
},
6526-
"order_tax_amount": {
6527-
"allOf": [
6528-
{
6529-
"$ref": "#/components/schemas/MinorUnit"
6530-
}
6531-
],
6532-
"nullable": true
6533-
},
6534-
"external_tax_calculation": {
6535-
"$ref": "#/components/schemas/TaxCalculationOverride"
6536-
},
6537-
"surcharge_calculation": {
6538-
"$ref": "#/components/schemas/SurchargeCalculationOverride"
6539-
},
6540-
"surcharge_amount": {
6541-
"allOf": [
6542-
{
6543-
"$ref": "#/components/schemas/MinorUnit"
6544-
}
6545-
],
6546-
"nullable": true
6547-
},
6548-
"tax_on_surcharge": {
6549-
"allOf": [
6550-
{
6551-
"$ref": "#/components/schemas/MinorUnit"
6552-
}
6553-
],
6554-
"nullable": true
6555-
},
6556-
"net_amount": {
6557-
"$ref": "#/components/schemas/MinorUnit"
6558-
},
6559-
"amount_to_capture": {
6560-
"allOf": [
6561-
{
6562-
"$ref": "#/components/schemas/MinorUnit"
6563-
}
6564-
],
6565-
"nullable": true
6566-
},
6567-
"amount_capturable": {
6568-
"$ref": "#/components/schemas/MinorUnit"
6569-
},
6570-
"amount_captured": {
6571-
"allOf": [
6572-
{
6573-
"$ref": "#/components/schemas/MinorUnit"
6574-
}
6575-
],
6576-
"nullable": true
6577-
}
6578-
}
6579-
},
65806513
"Connector": {
65816514
"type": "string",
65826515
"description": "A connector is an integration to fulfill payments",
@@ -6624,6 +6557,7 @@
66246557
"helcim",
66256558
"iatapay",
66266559
"itaubank",
6560+
"jpmorgan",
66276561
"klarna",
66286562
"mifinity",
66296563
"mollie",
@@ -12682,6 +12616,88 @@
1268212616
}
1268312617
}
1268412618
},
12619+
"PaymentAmountDetailsResponse": {
12620+
"type": "object",
12621+
"required": [
12622+
"currency",
12623+
"external_tax_calculation",
12624+
"surcharge_calculation",
12625+
"net_amount",
12626+
"amount_capturable"
12627+
],
12628+
"properties": {
12629+
"order_amount": {
12630+
"type": "integer",
12631+
"format": "int64",
12632+
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
12633+
"example": 6540,
12634+
"minimum": 0
12635+
},
12636+
"currency": {
12637+
"$ref": "#/components/schemas/Currency"
12638+
},
12639+
"shipping_cost": {
12640+
"allOf": [
12641+
{
12642+
"$ref": "#/components/schemas/MinorUnit"
12643+
}
12644+
],
12645+
"nullable": true
12646+
},
12647+
"order_tax_amount": {
12648+
"allOf": [
12649+
{
12650+
"$ref": "#/components/schemas/MinorUnit"
12651+
}
12652+
],
12653+
"nullable": true
12654+
},
12655+
"external_tax_calculation": {
12656+
"$ref": "#/components/schemas/TaxCalculationOverride"
12657+
},
12658+
"surcharge_calculation": {
12659+
"$ref": "#/components/schemas/SurchargeCalculationOverride"
12660+
},
12661+
"surcharge_amount": {
12662+
"allOf": [
12663+
{
12664+
"$ref": "#/components/schemas/MinorUnit"
12665+
}
12666+
],
12667+
"nullable": true
12668+
},
12669+
"tax_on_surcharge": {
12670+
"allOf": [
12671+
{
12672+
"$ref": "#/components/schemas/MinorUnit"
12673+
}
12674+
],
12675+
"nullable": true
12676+
},
12677+
"net_amount": {
12678+
"$ref": "#/components/schemas/MinorUnit"
12679+
},
12680+
"amount_to_capture": {
12681+
"allOf": [
12682+
{
12683+
"$ref": "#/components/schemas/MinorUnit"
12684+
}
12685+
],
12686+
"nullable": true
12687+
},
12688+
"amount_capturable": {
12689+
"$ref": "#/components/schemas/MinorUnit"
12690+
},
12691+
"amount_captured": {
12692+
"allOf": [
12693+
{
12694+
"$ref": "#/components/schemas/MinorUnit"
12695+
}
12696+
],
12697+
"nullable": true
12698+
}
12699+
}
12700+
},
1268512701
"PaymentAttemptResponse": {
1268612702
"type": "object",
1268712703
"required": [
@@ -13941,16 +13957,11 @@
1394113957
"PaymentMethodIntentConfirm": {
1394213958
"type": "object",
1394313959
"required": [
13944-
"client_secret",
1394513960
"payment_method_data",
1394613961
"payment_method_type",
1394713962
"payment_method_subtype"
1394813963
],
1394913964
"properties": {
13950-
"client_secret": {
13951-
"type": "string",
13952-
"description": "For SDK based calls, client_secret would be required"
13953-
},
1395413965
"customer_id": {
1395513966
"type": "string",
1395613967
"description": "The unique identifier of the customer.",
@@ -14236,7 +14247,7 @@
1423614247
"example": "2024-02-24T11:04:09.922Z",
1423714248
"nullable": true
1423814249
},
14239-
"client_secret": {
14250+
"ephemeral_key": {
1424014251
"type": "string",
1424114252
"description": "For Client based calls",
1424214253
"nullable": true
@@ -14385,14 +14396,6 @@
1438514396
"properties": {
1438614397
"payment_method_data": {
1438714398
"$ref": "#/components/schemas/PaymentMethodUpdateData"
14388-
},
14389-
"client_secret": {
14390-
"type": "string",
14391-
"description": "This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK",
14392-
"example": "secret_k2uj3he2893eiu2d",
14393-
"nullable": true,
14394-
"maxLength": 30,
14395-
"minLength": 30
1439614399
}
1439714400
},
1439814401
"additionalProperties": false
@@ -14553,42 +14556,12 @@
1455314556
},
1455414557
"PaymentsCaptureRequest": {
1455514558
"type": "object",
14556-
"required": [
14557-
"amount_to_capture"
14558-
],
1455914559
"properties": {
14560-
"merchant_id": {
14561-
"type": "string",
14562-
"description": "The unique identifier for the merchant",
14563-
"nullable": true
14564-
},
1456514560
"amount_to_capture": {
1456614561
"type": "integer",
1456714562
"format": "int64",
14568-
"description": "The Amount to be captured/ debited from the user's payment method.",
14569-
"example": 6540
14570-
},
14571-
"refund_uncaptured_amount": {
14572-
"type": "boolean",
14573-
"description": "Decider to refund the uncaptured amount",
14574-
"nullable": true
14575-
},
14576-
"statement_descriptor_suffix": {
14577-
"type": "string",
14578-
"description": "Provides information about a card payment that customers see on their statements.",
14579-
"nullable": true
14580-
},
14581-
"statement_descriptor_prefix": {
14582-
"type": "string",
14583-
"description": "Concatenated with the statement descriptor suffix that’s set on the account to form the complete statement descriptor.",
14584-
"nullable": true
14585-
},
14586-
"merchant_connector_details": {
14587-
"allOf": [
14588-
{
14589-
"$ref": "#/components/schemas/MerchantConnectorDetailsWrap"
14590-
}
14591-
],
14563+
"description": "The Amount to be captured/ debited from the user's payment method. If not passed the full amount will be captured.",
14564+
"example": 6540,
1459214565
"nullable": true
1459314566
}
1459414567
}
@@ -14691,7 +14664,7 @@
1469114664
"$ref": "#/components/schemas/IntentStatus"
1469214665
},
1469314666
"amount": {
14694-
"$ref": "#/components/schemas/ConfirmIntentAmountDetailsResponse"
14667+
"$ref": "#/components/schemas/PaymentAmountDetailsResponse"
1469514668
},
1469614669
"customer_id": {
1469714670
"type": "string",
@@ -16440,7 +16413,7 @@
1644016413
"$ref": "#/components/schemas/IntentStatus"
1644116414
},
1644216415
"amount": {
16443-
"$ref": "#/components/schemas/ConfirmIntentAmountDetailsResponse"
16416+
"$ref": "#/components/schemas/PaymentAmountDetailsResponse"
1644416417
},
1644516418
"customer_id": {
1644616419
"type": "string",
@@ -19537,6 +19510,7 @@
1953719510
"helcim",
1953819511
"iatapay",
1953919512
"itaubank",
19513+
"jpmorgan",
1954019514
"klarna",
1954119515
"mifinity",
1954219516
"mollie",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
openapi: openapi_spec get /relay/{relay_id}
3+
---
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
openapi: openapi_spec post /relay
3+
---

0 commit comments

Comments
 (0)