Closed JoeyLeeMEA closed 4 months ago
Thanks for the suggestion @JoeyLeeMEA, we'll look into it and prioritize it accordingly.
Has this feature request been implemented or is it going to be prioritized in the near future?
@eurias-stripe Could we get an update on this feature request? The delay is impacting our project, and we would appreciate any info on the timeline.
@JoeyLeeMEA @jaredmg75 This has been added in 23.28.0
@JoeyLeeMEA @jaredmg75 This has been added in 23.28.0
That's fantastic news! Thank you very much for the update. @yuki-stripe
Is your feature request related to a problem? Please describe.
STRApplePayContext
class is used for Apple Pay implementation and it provides a simple interface defined inApplePayContextDelegate
which is great. But unfortunately it doesn't support coupons which was introduced on iOS 15. Currently there is no way to detect if users enter the coupon code on the Apple Pay dialog.Describe the solution you'd like
Plesase internally implement
paymentAuthorizationViewController(_:didChangeCouponCode:handler:)
defined inPKPaymentAuthorizationViewControllerDelegate
protocol. https://developer.apple.com/documentation/passkit/pkpaymentauthorizationviewcontrollerdelegate/3752107-paymentauthorizationviewcontrollAnd provide a relevant function in
ApplePayContextDelegate
.Additional context
To enable the coupon code text field on Apple Pay dialog(
PKPaymentAuthorizationViewController
), setsupportsCouponCode
to true inPKPaymentRequest
For example: