#Vakarm
1 messages · Page 1 of 1 (latest)
Thank you for the details. Looking in to that. Does your code get any errors when that shows up?
the only error I catch is a string saying "Error"
but I also get a log, I'll paste it here
2023-01-11 10:42:30.811396-0500 Minute Pizza[52312:4140972] LOG ANALYTICS: ["bindings_version": "23.3.1", "apple_pay_enabled": 1, "event": "stripeios.token_creation", "app_version": "1.0", "ocr_type": "none", "os_version": "16.2", "product_usage": ["STPApplePayContext"], "device_type": "x86_64", "token_type": "apple_pay", "publishable_key": "unknown", "app_name": "Minute Pizza", "pay_var": "legacy", "install": "S", "additional_info": [], "analytics_ua": "analytics.stripeios-1.0"]
I noticed the "publishable_key" is unknown, but it isn't set anywhere in the tutorial so... I'm not sure it's relevant
Are you using any keys on the client side at the moment? Like an ephemeral key? Checking in to what is required here
no Stripe keys on the client side. But I use my apple pay merchant id.
Looks like normally you would set the publishable key when setting up the payment configuration:
STPPaymentConfiguration.shared.publishableKey = "pk_test_123"
And you can pass the ephemeral key (if you are working with a Customer object) when setting up the payment sheet https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet#add-server-endpoint
ok the STPPaymentConfirugration must be set Client Side then?
or maybe it is set server side so It would explain why it's not shown in the tutorial
STPPaymentConfirugration is a client side object
Ok, I have to set it before creating the intent of before processing the payment?
It works, payment is done 🙂
Great to hear!
Y'oure the man!, or the woman... you chose :p
Yeah just before your app tries to process the payment I think, but usually it is done when the app is starting up
thanks a lot