Skip to content

Commit 9309bc2

Browse files
Fix deferred intent confirmation in the PaymentSheet Playground + Link (#4463)
## Summary When using an alternate Link enabled mode, send the correct mode to the example backend. If we don't do this, it will use the wrong merchant key to attempt to access the PaymentMethod created by the client, which will fail. ## Testing In PS Example ## Changelog None, PS Example
1 parent 93ee7c7 commit 9309bc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift

+1
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,7 @@ extension PlaygroundController {
826826
"merchant_country_code": settings.merchantCountryCode.rawValue,
827827
"should_save_payment_method": shouldSavePaymentMethod,
828828
"mode": intentConfig.mode.requestBody,
829+
"link_mode": settings.linkEnabledMode.rawValue,
829830
"return_url": configuration.returnURL ?? "",
830831
] as [String: Any]
831832

0 commit comments

Comments
 (0)