#dipakchhag
1 messages · Page 1 of 1 (latest)
Hi there. tarzan is offline. Let's chat in this thread
Hello @thin snow
Sure @river estuary
I'm trying to do apple pay but getting this error
This is the log when I try to do payment using apple pay
"session_id": "5cb64b68-d1fc-4cd3-9f00-3399cd1565f5", "apple_pay_enabled": 1, "app_name": "The Sushi CO", "pay_var": "legacy", "os_version": "15.6.1", "duration": 0.01, "install": "C", "app_version": "1.0", "ocr_type": "none", "device_type": "iPhone11,2", "analytics_ua": "analytics.stripeios-1.0", "event": "mc_complete_payment_applepay_failure", "additional_info": [], "product_usage": ["PaymentSheet", "STPApplePayContext"], "link_enabled": false, "active_link_session": false]
Ok. That error accompanies the red error message you get on the payment sheet?
yes
Can you share the payment intent ID where this is happening?
Wait sharing
Payment intent: pi_3LsSTNJ8xFviXmsU1ZyVjMdJ_secret_OSS7QXU0orUuu6AmbqTyn4i2Y
@river estuary
Thanks looking
Are there any more logs?
Or is it just the log line you shared above?
["app_name": "The Sushi CO", "device_type": "iPhone11,2", "active_link_session": false, "app_version": "1.0", "install": "C", "apple_pay_enabled": 1, "publishable_key": "pk_live_51LLPVgJ8xFviXmsU3zza9QoK6Ybqv3xKnVKGleD2oTmtRjI3NCX80KjMwS85pIjpzf6SVDdGOOXjgt136XCsnY1U00t5PVRF9x", "analytics_ua": "analytics.stripeios-1.0", "pay_var": "legacy", "link_enabled": false, "session_id": "5cb64b68-d1fc-4cd3-9f00-3399cd1565f5", "bindings_version": "22.8.2", "additional_info": [], "event": "mc_complete_sheet_newpm_show", "os_version": "15.6.1", "product_usage": ["PaymentSheet", "STPApplePayContext"], "ocr_type": "none"]
2022-10-13 15:05:52.367047+0100 The Sushi CO[34148:2526065] LOG ANALYTICS: ["bindings_version": "22.8.2", "publishable_key": "pk_live_51LLPVgJ8xFviXmsU3zza9QoK6Ybqv3xKnVKGleD2oTmtRjI3NCX80KjMwS85pIjpzf6SVDdGOOXjgt136XCsnY1U00t5PVRF9x", "session_id": "5cb64b68-d1fc-4cd3-9f00-3399cd1565f5", "apple_pay_enabled": 1, "app_name": "The Sushi CO", "pay_var": "legacy", "os_version": "15.6.1", "duration": 0.01, "install": "C", "app_version": "1.0", "ocr_type": "none", "device_type": "iPhone11,2", "analytics_ua": "analytics.stripeios-1.0", "event": "mc_complete_payment_applepay_failure", "additional_info": [], "product_usage": ["PaymentSheet", "STPApplePayContext"], "link_enabled": false, "active_link_session": false]
Ok thank you. This may not be it, but can you try again without the space in the postal code and see what happens?
Okay, let me try and update you in some time
hello @river estuary
I tried but same issue
Ah ok thanks. Let me see if I can pull a colleague in to help with this
please.
Can you paste the snippet of your swift code where you display the apple pay sheet here?
sure
self.paymentIntentClientSecret = stripeData?.paymentIntent
guard let paymentIntentClientSecret = self.paymentIntentClientSecret else {
return
}
var configuration = PaymentSheet.Configuration()
configuration.defaultBillingDetails.address.country = "GB"
configuration.defaultBillingDetails.address.postalCode = "W4 5TA"
if let postcode = selectedLocation.postcode {
configuration.defaultBillingDetails.address.postalCode = postcode //"W4 5TA"
}
configuration.savePaymentMethodOptInBehavior = .automatic
configuration.merchantDisplayName = "The Sushi Co."
configuration.allowsDelayedPaymentMethods = false
configuration.primaryButtonColor = UIColor.darkGray
configuration.applePay = .init(
merchantId: "merchant.thesushi.co",
merchantCountryCode: "GB"
)
let paymentSheet = PaymentSheet(
paymentIntentClientSecret: paymentIntentClientSecret,
configuration: configuration)
paymentSheet.present(from: self.checkoutVC!) { [weak self] (paymentResult) in
switch paymentResult {
case .completed:
print("Payment complete!")
case .canceled:
print("Payment canceled!")
case .failed(let error):
print("Payment failed!")
}
}
@golden mirage please check
Thank you!
Still looking, it looks like the overall message is a generic Swift one, currently trying to find how and why it is getting displayed on the payment sheet
Yes, I'm thinking same. Its generic message, Should not display on paymentsheet.
Is your code reacting to the billing address being added in some way?
I forget if there is a callback or something for that with the payment sheet
Let me get error details in completion method if I get somthing
I'm having trouble finding much on this. Can you try making a pared down version of your project that gets this error? Like see if you can just have a view with a button that displays the sheet the way you currently do, and see if that gets the error as well?
You mean, I create a sample project and check if that also facing same error?
is that you saying
?
Correct, like try to take as much of your app's code away as possible and see if that still gets this error.
Okay, Thanks. I will try that way.. How we can connect again on this thread I need to discuss with you again
cause if i come again and thread is closed I will have to explain again to another person
So keep this thread open
Actually it might be best to move this to an email. Can you email us from our support site https://support.stripe.com/?contact=true
And then DM me your email address so I can grab it?
my email: chhagdipak@gmail.com
Thank you, just let me know when you have sent your email and I can grab it
I login using hotmail not gmail
Thank you
@golden mirage I have mail.. Please check if possible