Skip to content

Commit 2ab5575

Browse files
committed
Merge branch 'main' of github.com:juspay/hyperswitch into fixtures-unify-cypress
* 'main' of github.com:juspay/hyperswitch: chore(version): 2024.07.08.0 fix(connector): [adyen] remove browser info for mit and [paypal] add refund key in headers (#5225) chore(version): 2024.07.06.0 feat(router): Pass the shipping email whenever the billing details are included in the session token response (#5228) fix(cypress): fix metadata missing while creating connector if not in auth (#5215) refactor: fix unit and documentation tests (#4754) feat(events): add hashed customer_email and feature_metadata (#5220) feat(events): Add payment metadata to hyperswitch-payment-intent-events (#5170) fix(analytics): using HashSet to represent the returned metrics (#5179) feat(core): billing_details inclusion in Payment Intent (#5090) feat(router): pass fields to indicate if the customer address details to be connector from wallets (#5210) fix(refunds): Add aliases on refund status for backwards compatibility (#5216) Feat(connector): [BRAINTREE] Implement Card Mandates (#5204)
2 parents 2b431ff + ec31142 commit 2ab5575

File tree

152 files changed

+1241
-617
lines changed

Some content is hidden

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

152 files changed

+1241
-617
lines changed

.github/nextest.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[profile.default]
2+
status-level = "slow"
3+
final-status-level = "leak"
4+
failure-output = "final"
5+
fail-fast = false
6+
7+
[profile.ci]
8+
retries = 2
9+
status-level = "all"
10+
failure-output = "final"
11+
fail-fast = false

.github/workflows/CI-pr.yml

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ env:
3333
RUSTUP_MAX_RETRIES: 10
3434
# Don't emit giant backtraces in the CI logs.
3535
RUST_BACKTRACE: short
36-
# Use cargo's sparse index protocol
37-
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
36+
# Use `sccache` for caching compilation artifacts
37+
RUSTC_WRAPPER: sccache
3838

3939
jobs:
4040
formatting:
@@ -88,14 +88,7 @@ jobs:
8888
8989
check-msrv:
9090
name: Check compilation on MSRV toolchain
91-
runs-on: ${{ matrix.os }}
92-
strategy:
93-
fail-fast: true
94-
matrix:
95-
os:
96-
- ubuntu-latest
97-
# - macos-latest
98-
# - windows-latest
91+
runs-on: hyperswitch-runners
9992

10093
steps:
10194
- name: Checkout repository
@@ -122,14 +115,17 @@ jobs:
122115
with:
123116
toolchain: "${{ env.rust_version }}"
124117

125-
- uses: Swatinem/[email protected]
118+
- name: Install sccache
119+
uses: taiki-e/[email protected]
126120
with:
127-
save-if: false
121+
tool: sccache
122+
checksum: true
128123

129124
- name: Install cargo-hack
130-
uses: baptiste0928/cargo-install@v2.2.0
125+
uses: taiki-e/install-action@v2.33.28
131126
with:
132-
crate: cargo-hack
127+
tool: cargo-hack
128+
checksum: true
133129

134130
- name: Deny warnings
135131
shell: bash
@@ -210,14 +206,7 @@ jobs:
210206

211207
test:
212208
name: Run tests on stable toolchain
213-
runs-on: ${{ matrix.os }}
214-
strategy:
215-
fail-fast: false
216-
matrix:
217-
os:
218-
- ubuntu-latest
219-
# - macos-latest
220-
# - windows-latest
209+
runs-on: hyperswitch-runners
221210

222211
steps:
223212
- name: Generate a token
@@ -256,19 +245,23 @@ jobs:
256245
toolchain: stable 2 weeks ago
257246
components: clippy
258247

248+
- name: Install sccache
249+
uses: taiki-e/[email protected]
250+
with:
251+
tool: sccache
252+
checksum: true
253+
259254
- name: Install cargo-hack
260-
uses: baptiste0928/cargo-install@v2.2.0
255+
uses: taiki-e/install-action@v2.33.28
261256
with:
262-
crate: cargo-hack
257+
tool: cargo-hack
258+
checksum: true
263259

264260
# - name: Install cargo-nextest
265-
# uses: baptiste0928/cargo-install@v2.2.0
261+
# uses: taiki-e/install-action@v2.33.28
266262
# with:
267-
# crate: cargo-nextest
268-
269-
- uses: Swatinem/[email protected]
270-
with:
271-
save-if: false
263+
# tool: cargo-nextest
264+
# checksum: true
272265

273266
# - name: Setup Embark Studios lint rules
274267
# shell: bash

.github/workflows/CI-push.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,7 @@ jobs:
3939

4040
check-msrv:
4141
name: Check compilation on MSRV toolchain
42-
runs-on: ${{ matrix.os }}
43-
strategy:
44-
fail-fast: true
45-
matrix:
46-
os:
47-
- ubuntu-latest
48-
# - macos-latest
49-
# - windows-latest
42+
runs-on: ubuntu-latest
5043

5144
steps:
5245
- name: Checkout repository
@@ -115,14 +108,7 @@ jobs:
115108

116109
test:
117110
name: Run tests on stable toolchain
118-
runs-on: ${{ matrix.os }}
119-
strategy:
120-
fail-fast: false
121-
matrix:
122-
os:
123-
- ubuntu-latest
124-
# - macos-latest
125-
# - windows-latest
111+
runs-on: ubuntu-latest
126112

127113
steps:
128114
- name: Checkout repository

CHANGELOG.md

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

55
- - -
66

7+
## 2024.07.08.0
8+
9+
### Bug Fixes
10+
11+
- **connector:** [adyen] remove browser info for mit and [paypal] add refund key in headers ([#5225](https://github.com/juspay/hyperswitch/pull/5225)) ([`5ea09c7`](https://github.com/juspay/hyperswitch/commit/5ea09c7f9d50791fddc19cc97922659bb1bc0f57))
12+
13+
**Full Changelog:** [`2024.07.06.0...2024.07.08.0`](https://github.com/juspay/hyperswitch/compare/2024.07.06.0...2024.07.08.0)
14+
15+
- - -
16+
17+
## 2024.07.06.0
18+
19+
### Features
20+
21+
- **connector:** [BRAINTREE] Implement Card Mandates ([#5204](https://github.com/juspay/hyperswitch/pull/5204)) ([`1904ffa`](https://github.com/juspay/hyperswitch/commit/1904ffad889bbf2c77e959fda60c0c55fd57f596))
22+
- **core:** Billing_details inclusion in Payment Intent ([#5090](https://github.com/juspay/hyperswitch/pull/5090)) ([`ec01788`](https://github.com/juspay/hyperswitch/commit/ec01788bc4d4363a3e783e7b877d1d31f90e196e))
23+
- **events:**
24+
- Add payment metadata to hyperswitch-payment-intent-events ([#5170](https://github.com/juspay/hyperswitch/pull/5170)) ([`5ebfbaf`](https://github.com/juspay/hyperswitch/commit/5ebfbaf19965b0dfbaaf975b38b0f72db83eca66))
25+
- Add hashed customer_email and feature_metadata ([#5220](https://github.com/juspay/hyperswitch/pull/5220)) ([`ae2a34e`](https://github.com/juspay/hyperswitch/commit/ae2a34e02cd8bc0ab2e213c18953583046b17241))
26+
- **router:**
27+
- Pass fields to indicate if the customer address details to be connector from wallets ([#5210](https://github.com/juspay/hyperswitch/pull/5210)) ([`c642d9d`](https://github.com/juspay/hyperswitch/commit/c642d9dcf5e2bb9a91d543731e33ce5fe3e81b95))
28+
- Pass the shipping email whenever the billing details are included in the session token response ([#5228](https://github.com/juspay/hyperswitch/pull/5228)) ([`9c89f88`](https://github.com/juspay/hyperswitch/commit/9c89f8899d40820a0c656695248dab451f15a272))
29+
30+
### Bug Fixes
31+
32+
- **analytics:** Using HashSet to represent the returned metrics ([#5179](https://github.com/juspay/hyperswitch/pull/5179)) ([`16e8f4b`](https://github.com/juspay/hyperswitch/commit/16e8f4b263842bcf0767ed06ee94d73e02247dd8))
33+
- **cypress:** Fix metadata missing while creating connector if not in auth ([#5215](https://github.com/juspay/hyperswitch/pull/5215)) ([`91a9542`](https://github.com/juspay/hyperswitch/commit/91a954264a5dbf11a27ba1c672c0391f64f448a0))
34+
- **refunds:** Add aliases on refund status for backwards compatibility ([#5216](https://github.com/juspay/hyperswitch/pull/5216)) ([`a2c0d7f`](https://github.com/juspay/hyperswitch/commit/a2c0d7f09522a105f0037de5cbd4ed602e5cfdc6))
35+
36+
### Refactors
37+
38+
- Adding millisecond to Kafka timestamp ([#5202](https://github.com/juspay/hyperswitch/pull/5202)) ([`00f9ed4`](https://github.com/juspay/hyperswitch/commit/00f9ed4cae6022708f5c46544e4bbec5deafbc7d))
39+
- Fix unit and documentation tests ([#4754](https://github.com/juspay/hyperswitch/pull/4754)) ([`648cecb`](https://github.com/juspay/hyperswitch/commit/648cecb204571eb5ac7378d9a217bf74c32a8377))
40+
41+
**Full Changelog:** [`2024.07.05.0...2024.07.06.0`](https://github.com/juspay/hyperswitch/compare/2024.07.05.0...2024.07.06.0)
42+
43+
- - -
44+
745
## 2024.07.05.0
846

947
### Features

Cargo.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-reference/openapi_spec.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9485,6 +9485,14 @@
94859485
}
94869486
],
94879487
"nullable": true
9488+
},
9489+
"search_tags": {
9490+
"allOf": [
9491+
{
9492+
"$ref": "#/components/schemas/RedirectResponse"
9493+
}
9494+
],
9495+
"nullable": true
94889496
}
94899497
}
94909498
},
@@ -14287,6 +14295,16 @@
1428714295
"type": "boolean",
1428814296
"description": "flag to indicate whether to perform external 3ds authentication",
1428914297
"example": true
14298+
},
14299+
"collect_shipping_details_from_wallets": {
14300+
"type": "boolean",
14301+
"description": "flag that indicates whether to collect shipping details from wallets or from the customer",
14302+
"nullable": true
14303+
},
14304+
"collect_billing_details_from_wallets": {
14305+
"type": "boolean",
14306+
"description": "flag that indicates whether to collect billing details from wallets or from the customer",
14307+
"nullable": true
1429014308
}
1429114309
}
1429214310
},

config/deployments/env_specific.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ audit_events_topic = "topic" # Kafka topic to be used for Payment
8282
payout_analytics_topic = "topic" # Kafka topic to be used for Payouts and PayoutAttempt events
8383
consolidated_events_topic = "topic" # Kafka topic to be used for Consolidated events
8484
authentication_analytics_topic = "topic" # Kafka topic to be used for Authentication events
85+
fraud_check_analytics_topic = "topic" # Kafka topic to be used for Fraud Check events
8586

8687
# File storage configuration
8788
[file_storage]

config/deployments/integration_test.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ connectors_with_delayed_session_response = "trustpay,payme" # List of connec
135135
bank_debit.ach.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
136136
bank_debit.becs.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
137137
bank_debit.sepa.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
138-
card.credit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica" # Mandate supported payment method type and connector for card
139-
card.debit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica" # Mandate supported payment method type and connector for card
138+
card.credit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree" # Mandate supported payment method type and connector for card
139+
card.debit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree" # Mandate supported payment method type and connector for card
140140
pay_later.klarna.connector_list = "adyen" # Mandate supported payment method type and connector for pay_later
141141
wallet.apple_pay.connector_list = "stripe,adyen,cybersource,noon,bankofamerica" # Mandate supported payment method type and connector for wallets
142142
wallet.google_pay.connector_list = "stripe,adyen,cybersource,bankofamerica" # Mandate supported payment method type and connector for wallets

config/deployments/production.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ enabled = false
135135
bank_debit.ach.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
136136
bank_debit.becs.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
137137
bank_debit.sepa.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
138-
card.credit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica" # Mandate supported payment method type and connector for card
139-
card.debit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica" # Mandate supported payment method type and connector for card
138+
card.credit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree" # Mandate supported payment method type and connector for card
139+
card.debit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree" # Mandate supported payment method type and connector for card
140140
pay_later.klarna.connector_list = "adyen" # Mandate supported payment method type and connector for pay_later
141141
wallet.apple_pay.connector_list = "stripe,adyen,cybersource,noon,bankofamerica" # Mandate supported payment method type and connector for wallets
142142
wallet.google_pay.connector_list = "stripe,adyen,cybersource,bankofamerica" # Mandate supported payment method type and connector for wallets

config/deployments/sandbox.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ enabled = true
135135
bank_debit.ach.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
136136
bank_debit.becs.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
137137
bank_debit.sepa.connector_list = "gocardless" # Mandate supported payment method type and connector for bank_debit
138-
card.credit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica" # Mandate supported payment method type and connector for card
139-
card.debit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica" # Mandate supported payment method type and connector for card
138+
card.credit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree" # Mandate supported payment method type and connector for card
139+
card.debit.connector_list = "stripe,adyen,authorizedotnet,cybersource,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree" # Mandate supported payment method type and connector for card
140140
pay_later.klarna.connector_list = "adyen" # Mandate supported payment method type and connector for pay_later
141141
wallet.apple_pay.connector_list = "stripe,adyen,cybersource,noon,bankofamerica" # Mandate supported payment method type and connector for wallets
142142
wallet.google_pay.connector_list = "stripe,adyen,cybersource,bankofamerica" # Mandate supported payment method type and connector for wallets

0 commit comments

Comments
 (0)