Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Deserialization issue when account_name is not passed for globalpay during mca create #7541

Closed
pixincreate opened this issue Mar 17, 2025 · 0 comments · Fixed by #7540
Assignees
Labels
A-connector-integration Area: Connector integration C-bug Category: Bug

Comments

@pixincreate
Copy link
Member

pixincreate commented Mar 17, 2025

Issue:

  • When account_name is not passed, which is a required field, 5xx is thrown:
{"error":{"type":"api","message":"Something went wrong","code":"HE_00"}}
├╴at crates/router/src/services/api.rs:800:14
│
├─▶ {"error":{"type":"server_not_available","code":"HE_00","message":"Something went wrong"}}
│   ╰╴at crates/router/src/core/errors/utils.rs:321:17
│
├─▶ Parsing failed
│   ╰╴at crates/hyperswitch_connectors/src/utils.rs:288:50
│
├─▶ Failed to parse struct: hyperswitch_connectors::connectors::globalpay::transformers::GlobalPayMeta
│   ├╴at /router/crates/common_utils/src/ext_traits.rs:227:14
│   ╰╴Unable to parse hyperswitch_connectors::connectors::globalpay::transformers::GlobalPayMeta from serde_json::Value: Object {"google_pay": Object {"merchant_info": Object {"merchant_name": String("Narayan Bhat")}, "allowed_payment_methods": Array [Object {"type": String("CARD"), "parameters": Object {"allowed_auth_methods": Array [String("PAN_ONLY"), String("CRYPTOGRAM_3DS")], "allowed_card_networks": Array [String("AMEX"), String("DISCOVER"), String("INTERAC"), String("JCB"), String("MASTERCARD"), String("VISA")]}, "tokenization_specification": Object {"type": String("PAYMENT_GATEWAY"), "parameters": Object {"gateway": String("example"), "gateway_merchant_id": String("22956")}}}]}}
│
╰─▶ missing field `account_name`
    ╰╴at /router/crates/common_utils/src/ext_traits.rs:227:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration C-bug Category: Bug
Projects
None yet
2 participants