Skip to content

Commit

Permalink
Merge branch 'main' of github.com:juspay/hyperswitch into refactor-cu…
Browse files Browse the repository at this point in the history
…stomer-pm-list
  • Loading branch information
Sarthak1799 committed Aug 1, 2024
2 parents 300b09a + 625f5ae commit e838c6e
Show file tree
Hide file tree
Showing 146 changed files with 5,150 additions and 2,072 deletions.
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,45 @@ All notable changes to HyperSwitch will be documented here.

- - -

## 2024.08.01.0

### Bug Fixes

- **payment_link:** Move redirection fn to global scope for open links ([#5494](https://github.com/juspay/hyperswitch/pull/5494)) ([`7ddfbf5`](https://github.com/juspay/hyperswitch/commit/7ddfbf51c3c3db99041e3d175a9100a60a339fe8))

### Documentation

- API-Ref changes for Payouts ([#5236](https://github.com/juspay/hyperswitch/pull/5236)) ([`540ef07`](https://github.com/juspay/hyperswitch/commit/540ef071cb238a56d52d06687226aab7fd0dfe68))

**Full Changelog:** [`2024.07.31.0...2024.08.01.0`](https://github.com/juspay/hyperswitch/compare/2024.07.31.0...2024.08.01.0)

- - -

## 2024.07.31.0

### Features

- **connector:** [BAMBORA, BITPAY, STAX] Move connector to hyperswitch_connectors ([#5450](https://github.com/juspay/hyperswitch/pull/5450)) ([`827fa07`](https://github.com/juspay/hyperswitch/commit/827fa07418b0514cbc5a43af2e4c7a88d1b7b4e7))
- **payment_link:** Add provision for secured payment links ([#5357](https://github.com/juspay/hyperswitch/pull/5357)) ([`043abb5`](https://github.com/juspay/hyperswitch/commit/043abb59b9291e18824d16363f60657f22bd33e1))
- Rename columns in organization for v2 ([#5424](https://github.com/juspay/hyperswitch/pull/5424)) ([`a791391`](https://github.com/juspay/hyperswitch/commit/a791391e2ac125ef7bb6a92de5f1419e673bdfe0))

### Bug Fixes

- **connector:** [Pix] convert data type of pix fields ([#5476](https://github.com/juspay/hyperswitch/pull/5476)) ([`be9347b`](https://github.com/juspay/hyperswitch/commit/be9347b8d56c0a6cf0d04cf51c75dd6426d3a21a))

### Refactors

- **configs:** Include env for cybersource in integration_test ([#5474](https://github.com/juspay/hyperswitch/pull/5474)) ([`b3b71b1`](https://github.com/juspay/hyperswitch/commit/b3b71b10c3627868420648e70913a0620dcb3b6e))
- **id_type:** Use macros for defining ID types and implementing common traits ([#5471](https://github.com/juspay/hyperswitch/pull/5471)) ([`1d4fb1d`](https://github.com/juspay/hyperswitch/commit/1d4fb1d2474190ea0a70810e416c61883fab34b8))

### Documentation

- Update postgreSQL database url ([#5482](https://github.com/juspay/hyperswitch/pull/5482)) ([`ef7fa0d`](https://github.com/juspay/hyperswitch/commit/ef7fa0d16ebe12bd86572c7ab80e7caa70d75578))

**Full Changelog:** [`2024.07.30.0...2024.07.31.0`](https://github.com/juspay/hyperswitch/compare/2024.07.30.0...2024.07.31.0)

- - -

## 2024.07.30.0

### Features
Expand Down
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 50 additions & 24 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6632,15 +6632,13 @@
"nullable": true
},
"cpf": {
"type": "integer",
"format": "int64",
"type": "string",
"description": "CPF is a Brazilian tax identification number",
"example": "10599054689",
"nullable": true
},
"cnpj": {
"type": "integer",
"format": "int64",
"type": "string",
"description": "CNPJ is a Brazilian company tax identification number",
"example": "74469027417312",
"nullable": true
Expand Down Expand Up @@ -6992,6 +6990,15 @@
"$ref": "#/components/schemas/PaymentLinkConfigRequest"
},
"nullable": true
},
"allowed_domains": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of allowed domains (glob patterns) where this link can be embedded / opened from",
"uniqueItems": true,
"nullable": true
}
}
}
Expand Down Expand Up @@ -7810,7 +7817,7 @@
},
"ChargeRefunds": {
"type": "object",
"description": "Charge object for refunds",
"description": "Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.",
"required": [
"charge_id"
],
Expand Down Expand Up @@ -13956,6 +13963,15 @@
"enabled_saved_payment_method": {
"type": "boolean",
"description": "Enable saved payment method option for payment link"
},
"allowed_domains": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of allowed domains (glob patterns) where this link can be embedded / opened from",
"uniqueItems": true,
"nullable": true
}
}
},
Expand Down Expand Up @@ -14029,10 +14045,17 @@
],
"properties": {
"link": {
"type": "string"
"type": "string",
"description": "URL for rendering the open payment link"
},
"secure_link": {
"type": "string",
"description": "URL for rendering the secure payment link",
"nullable": true
},
"payment_link_id": {
"type": "string"
"type": "string",
"description": "Identifier for the payment link"
}
}
},
Expand Down Expand Up @@ -16228,13 +16251,6 @@
"example": true,
"nullable": true
},
"capture_on": {
"type": "string",
"format": "date-time",
"description": "A timestamp (ISO 8601 code) that determines when the payment should be captured.\nProviding this field will automatically set `capture` to true",
"example": "2022-09-10T10:11:12Z",
"nullable": true
},
"capture_method": {
"allOf": [
{
Expand Down Expand Up @@ -18290,7 +18306,8 @@
}
}
}
]
],
"description": "Custom payout link config for the particular payout, if payout link is to be generated."
},
"PayoutCreateRequest": {
"type": "object",
Expand All @@ -18309,15 +18326,15 @@
"properties": {
"payout_id": {
"type": "string",
"description": "Unique identifier for the payout. This ensures idempotency for multiple payouts\nthat have been done by a single merchant. This field is auto generated and is returned in the API response.",
"description": "Unique identifier for the payout. This ensures idempotency for multiple payouts that have been done by a single merchant. This field is auto generated and is returned in the API response, **not required to be included in the Payout Create/Update Request.**",
"example": "payout_mbabizu24mvu3mela5njyhpit4",
"nullable": true,
"maxLength": 30,
"minLength": 30
},
"merchant_id": {
"type": "string",
"description": "This is an identifier for the merchant account. This is inferred from the API key\nprovided during the request",
"description": "This is an identifier for the merchant account. This is inferred from the API key provided during the request, **not required to be included in the Payout Create/Update Request.**",
"example": "merchant_1668273825",
"nullable": true,
"maxLength": 255
Expand All @@ -18344,7 +18361,7 @@
"items": {
"$ref": "#/components/schemas/PayoutConnectors"
},
"description": "This allows the merchant to manually select a connector with which the payout can go through",
"description": "This field allows the merchant to manually select a connector with which the payout can go through.",
"example": [
"wise",
"adyen"
Expand All @@ -18353,7 +18370,7 @@
},
"confirm": {
"type": "boolean",
"description": "The boolean value to create payout with connector",
"description": "This field is used when merchant wants to confirm the payout, thus useful for the payout _Confirm_ request. Ideally merchants should _Create_ a payout, _Update_ it (if required), then _Confirm_ it.",
"default": false,
"example": true
},
Expand Down Expand Up @@ -18454,21 +18471,21 @@
},
"payout_token": {
"type": "string",
"description": "Provide a reference to a stored payout method",
"description": "Provide a reference to a stored payout method, used to process the payout.",
"example": "187282ab-40ef-47a9-9206-5099ba31e432",
"nullable": true
},
"profile_id": {
"type": "string",
"description": "The business profile to use for this payout, if not passed the default business profile\nassociated with the merchant account will be used.",
"description": "The business profile to use for this payout, especially if there are multiple business profiles associated with the account, otherwise default business profile associated with the merchant account will be used.",
"nullable": true
},
"priority": {
"$ref": "#/components/schemas/PayoutSendPriority"
},
"payout_link": {
"type": "boolean",
"description": "Whether to get the payout link (if applicable)",
"description": "Whether to get the payout link (if applicable). Merchant need to specify this during the Payout _Create_, this field can not be updated during Payout _Update_.",
"default": false,
"example": true,
"nullable": true
Expand Down Expand Up @@ -18690,6 +18707,7 @@
},
"PayoutEntityType": {
"type": "string",
"description": "Type of entity to whom the payout is being carried out to, select from the given list of options",
"enum": [
"Individual",
"Company",
Expand Down Expand Up @@ -18930,7 +18948,8 @@
}
}
}
]
],
"description": "The payout method information required for carrying out a payout"
},
"PayoutRequest": {
"oneOf": [
Expand Down Expand Up @@ -19011,6 +19030,7 @@
},
"PayoutSendPriority": {
"type": "string",
"description": "The send method which will be required for processing payouts, check options for better understanding.",
"enum": [
"instant",
"fast",
Expand Down Expand Up @@ -19040,6 +19060,7 @@
},
"PayoutType": {
"type": "string",
"description": "The payout_type of the payout request is a mandatory field for confirming the payouts. It should be specified in the Create request. If not provided, it must be updated in the Payout Update request before it can be confirmed.",
"enum": [
"card",
"bank",
Expand Down Expand Up @@ -19929,7 +19950,7 @@
},
"link_to_pay": {
"type": "string",
"description": "Payment Link"
"description": "Open payment link (without any security checks and listing SPMs)"
},
"amount": {
"type": "integer",
Expand Down Expand Up @@ -19963,6 +19984,11 @@
}
],
"nullable": true
},
"secure_link": {
"type": "string",
"description": "Secure payment link (with security checks and listing saved payment methods)",
"nullable": true
}
}
},
Expand Down
1 change: 1 addition & 0 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ noon.key_mode = "Test"
nuvei.base_url = "https://ppp-test.nuvei.com/"
opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
Expand Down
7 changes: 7 additions & 0 deletions config/deployments/integration_test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ noon.key_mode = "Test"
nuvei.base_url = "https://ppp-test.nuvei.com/"
opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
Expand Down Expand Up @@ -289,6 +290,12 @@ ideal = { country = "NL", currency = "EUR" }
klarna = { country = "AU,AT,BE,CA,CZ,DK,FI,FR,DE,GR,IE,IT,NL,NZ,NO,PL,PT,ES,SE,CH,GB,US", currency = "AUD,CAD,CHF,CZK,DKK,EUR,GBP,NOK,NZD,PLN,SEK,USD" }
sofort = { country = "AT,BE,DE,IT,NL,ES", currency = "EUR" }

[pm_filters.cybersource]
credit = { currency = "USD" }
debit = { currency = "USD" }
apple_pay = { currency = "USD" }
google_pay = { currency = "USD" }

[pm_filters.volt]
open_banking_uk = {country = "DE,GB,AT,BE,CY,EE,ES,FI,FR,GR,HR,IE,IT,LT,LU,LV,MT,NL,PT,SI,SK,BG,CZ,DK,HU,NO,PL,RO,SE,AU,BR", currency = "EUR,GBP,DKK,NOK,PLN,SEK,AUD,BRL"}

Expand Down
1 change: 1 addition & 0 deletions config/deployments/production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ noon.key_mode = "Live"
nuvei.base_url = "https://ppp-test.nuvei.com/"
opayo.base_url = "https://pi-live.sagepay.com/"
opennode.base_url = "https://api.opennode.com"
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
payeezy.base_url = "https://api.payeezy.com/"
payme.base_url = "https://live.payme.io/"
payone.base_url = "https://payment.payone.com/"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/sandbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ noon.key_mode = "Test"
nuvei.base_url = "https://ppp-test.nuvei.com/"
opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
Expand Down
6 changes: 6 additions & 0 deletions config/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ cards = [
"nuvei",
"opayo",
"opennode",
"paybox",
"payeezy",
"payme",
"payone",
Expand Down Expand Up @@ -173,6 +174,10 @@ validity = 1
[api_keys]
hash_key = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"

checksum_auth_context = "TEST"
checksum_auth_key = "54455354"


[connectors]
aci.base_url = "https://eu-test.oppwa.com/"
adyen.base_url = "https://checkout-test.adyen.com/"
Expand Down Expand Up @@ -223,6 +228,7 @@ noon.key_mode = "Test"
nuvei.base_url = "https://ppp-test.nuvei.com/"
opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
Expand Down
2 changes: 2 additions & 0 deletions config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ noon.key_mode = "Test"
nuvei.base_url = "https://ppp-test.nuvei.com/"
opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
Expand Down Expand Up @@ -235,6 +236,7 @@ cards = [
"nuvei",
"opayo",
"opennode",
"paybox",
"payeezy",
"payme",
"payone",
Expand Down
Loading

0 comments on commit e838c6e

Please sign in to comment.