juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.99k stars 1.26k forks source link

fix(router): skip serialize if none for assurance_details_required in googlepay session response #5118

Closed sai-harsha-vardhan closed 3 months ago

sai-harsha-vardhan commented 3 months ago

Type of Change

Description

assurance_details_required being null in googlepay session response was causing issues in SDK, skip serialize if none for assurance_details_required in googlepay session response

parent pr - https://github.com/juspay/hyperswitch/pull/2744

Additional Changes

Motivation and Context

How did you test it?

Tested Manually

  1. There's no assurance_details_required field in metadata for googlepay, field is not shown in the response image

  2. If there's assurance_details_required in metadata for googlepay, then the value is returned image

Checklist