prompt
stringlengths 24
70.5k
| response
stringlengths 271
16.7k
| metadata
stringlengths 145
152
|
|---|---|---|
Gift Card Balance check API for split payments
We need to add an API to check balance for gift card.
This API will be called by the SDK and based on the gift card balance and transaction amount, we will collect either only gift card details or gift card details + another payment method
|
<think>
PR Context:
- Title: feat(router): Add gift card balance check endpoint (v2)
- Merged: 2025-09-17T07:50:47Z
- Files changed: 29 files
- Commits: 25 commits
Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
- Added `check-gift-card-balance` API
- Added `GiftCardBalanceCheck` flow for connectors and implemented it for Adyen
- Updated PML flow to store gift card enabled MCA in redis
<img width="2314" height="1286" alt="image" src="https://gith
</think>
To implement this, you'll need to modify:
**Detailed Implementation:**
**Commit 1:** feat(router): Add gift card balance check endpoint (v2) (#9102)
Files to modify:
**crates/api_models/src/events/payment.rs**
Add:
- function: private::get_api_event_type
- impl: impl ApiEventMetric for payments::GiftCardBalanceCheckResponse
**crates/api_models/src/payments.rs**
Add:
- struct: pub::GiftCardBalanceCheckResponse
- struct: pub::PaymentsGiftCardBalanceCheckRequest
**crates/common_utils/src/id_type/global_id/payment.rs**
Add:
- function: pub::get_gift_card_connector_key
**crates/hyperswitch_connectors/src/connectors/adyen.rs**
Add:
- function: private::get_headers
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_5xx_error_response
- impl: impl api::PaymentsGiftCardBalanceCheck for Adyen
- impl: impl ConnectorIntegration<
GiftCardBalanceCheck,
GiftCardBalanceCheckRequestData,
GiftCardBalanceCheckResponseData,
> for Adyen
**crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs**
Add:
- function: private::try_from
- function: private::try_from
- impl: impl TryFrom<&PaymentsGiftCardBalanceCheckRouterData> for AdyenBalanceRequest<'_>
- impl: impl TryFrom<
ResponseRouterData<
GiftCardBalanceCheck,
AdyenBalanceResponse,
GiftCardBalanceCheckRequestData,
GiftCardBalanceCheckResponseData,
>,
> for RouterData<
GiftCardBalanceCheck,
GiftCardBalanceCheckRequestData,
GiftCardBalanceCheckResponseData,
>
**crates/hyperswitch_connectors/src/default_implementations.rs**
Add:
- impl: impl PaymentsGiftCardBalanceCheck for connectors::DummyConnector<T>
- impl: impl ConnectorIntegration<
GiftCardBalanceCheck,
GiftCardBalanceCheckRequestData,
GiftCardBalanceCheckResponseData,
> for connectors::DummyConnector<T>
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Add:
- impl: impl PaymentsGiftCardBalanceCheckV2 for $connector
- impl: impl ConnectorIntegrationV2<
GiftCardBalanceCheck,
GiftCardBalanceCheckFlowData,
GiftCardBalanceCheckRequestData,
GiftCardBalanceCheckResponseData,
> for $connector
**crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs**
Add:
- struct: pub::GiftCardBalanceCheckFlowData
**crates/hyperswitch_domain_models/src/router_flow_types/payments.rs**
Add:
- struct: pub::GiftCardBalanceCheck
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Add:
- struct: pub::GiftCardBalanceCheckRequestData
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Add:
- struct: pub::GiftCardBalanceCheckResponseData
**crates/hyperswitch_domain_models/src/types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api/payments.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api/payments_v2.rs**
Add:
- trait: pub::PaymentsGiftCardBalanceCheckV2
**crates/hyperswitch_interfaces/src/conversion_impls.rs**
Add:
- function: private::from_old_router_data
- function: private::to_old_router_data
- impl: impl RouterDataConversion<T, Req, Resp> for GiftCardBalanceCheckFlowData
**crates/hyperswitch_interfaces/src/types.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/openapi/src/routes/payments.rs**
Add:
- function: pub::payment_check_gift_card_balance
**crates/router/src/core.rs**
Add:
- mod: pub::gift_card
**crates/router/src/core/gift_card.rs**
Add:
- function: pub::payments_check_gift_card_balance_core
**crates/router/src/core/payments/payment_methods.rs**
Add:
- function: private::store_gift_card_mca_in_redis
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/lock_utils.rs**
Modify existing code
**crates/router/src/routes/payments.rs**
Add:
- function: pub::payment_check_gift_card_balance
**crates/router/src/services/api.rs**
Modify existing code
**crates/router_env/src/logger/types.rs**
Modify existing code
|
{"issue_number": 9101, "pr_number": 9102, "commits_count": 1, "files_changed": 29, "response_length": 5096, "file_count": 28, "needs_breakdown": true}
|
[CYPRESS] Fix Cypress connector failures
Wise
Elavon
Paybox
Datatrans
Facilitapay
Itaubank
|
<think>
PR Context:
- Title: fix(cypress): fix itaubank, datatrans and facilitapay
- Merged: 2025-06-10T10:26:47Z
- Files changed: 4 files
- Commits: 9 commits
Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR fixes Cypress tests for Itaubank, Paybox and Datatrans.
Datatrans still fail. Datatrans fails because `ResponseCustom` needs a refactor while Paybox requires us to pass `FR` as country and upon fixing it, it started to say wrong c
</think>
To implement this, you'll need to modify:
(No detailed commit information available)
|
{"issue_number": 8230, "pr_number": 8229, "commits_count": 0, "files_changed": 4, "response_length": 783, "file_count": 0, "needs_breakdown": false}
|
[BUG] [NOON] 3ds payment have `next_action` as `null`
3ds card payments in noon connector receive `next_action` as `null`.
this can be resolved by unifying both the responses (paypal and card) into one and use it else where.
|
<think>
PR Context:
- Title: fix(connector): [noon] address `next_action_url` being `null` for cards in 3ds payment
- Merged: 2025-04-21T11:05:17Z
- Files changed: 21 files
- Commits: 2 commits
Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
ORIGINAL PR: https://github.com/juspay/hyperswitch/pull/7832
previously, when making a 3ds card transaction via noon connector, we would get `next_action` as `null` which is not intended. and that is because, paypal response would overrid
</think>
To implement this, you'll need to modify:
**Detailed Implementation:**
**Commit 1:** fix(connector): [noon] address `next_action_url` being `null` for cards in 3ds payment (#7856)
Co-au
Files to modify:
**crates/common_utils/src/types.rs**
Modify existing code
**crates/common_utils/src/validation.rs**
Modify existing code
**crates/euclid/src/backend/vir_interpreter.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/bluesnap.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/forte/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/noon.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/noon/transformers.rs**
Remove:
- function: private::try_from
- struct: pub::NoonPaypalResponse
- struct: pub::NoonPaypalResponseResult
- impl: impl TryFrom<ResponseRouterData<F, NoonPaypalResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
**crates/hyperswitch_connectors/src/connectors/paypal.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/square/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/volt.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zen/transformers.rs**
Modify existing code
**crates/router/src/connector/netcetera/netcetera_types.rs**
Modify existing code
**crates/router/src/connector/netcetera/transformers.rs**
Modify existing code
**crates/router/src/core/errors/utils.rs**
Modify existing code
**crates/router/src/events/audit_events.rs**
Modify existing code
**crates/router/tests/connectors/cashtocode.rs**
Modify existing code
|
{"issue_number": 7831, "pr_number": 7856, "commits_count": 1, "files_changed": 21, "response_length": 2940, "file_count": 23, "needs_breakdown": true}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.