简体   繁体   English

苹果付款带条纹无效的送货地址

[英]Apple pay with stripe invalid shipping address

User authorises the payment via delegate method: 用户通过委托方法授权付款:

- (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller
                       didAuthorizePayment:(PKPayment *)payment
{
    //my code here
}

The payment is then used in following method to make token: 然后将付款用于以下方法来制作令牌:

    [Stripe createTokenWithPayment:payment
                    completion:^(STPToken *token, NSError *error) 

It is not making any token rather showing the user this error; 它没有做任何令牌,而是向用户显示此错误。

PKPaymentAuthorizationStatusInvalidShippingContact PKPaymentAuthorizationStatusInvalidShippingContact

I want to know if this is mine error or just user is not providing sufficient information. 我想知道这是我的错误还是只是用户未提供足够的信息。

You are using the wrong delegate method to handle payment validation. 您使用错误的委托方法来处理付款验证。 The corect one is 最核心的是

- (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller
                   didAuthorizePayment:(PKPayment *)payment
                            completion:(void (^)(PKPaymentAuthorizationStatus status))completion;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM