#archas_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1331168082168905798
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey @bold oasis. Any idea as to what the problem may be?
Hi @echo sundial can you show me your code?
sure.
And are you using PaymentSheet?
nope
`
private func donateWithApplePay() {
let applePayHandler = ApplePayHandler()
// Set up payment status handler
applePayHandler.paymentStatus = { status in
DispatchQueue.main.async {
switch status {
case "Payment successful!":
successWithRecurring()
case "Payment cancelled by user":
failedUI()
default:
failedUI()
}
}
}
// Convert donation amount string to Decimal
if let amount = Decimal(string: customAmount.replacingOccurrences(of: ",", with: "")) {
// Start Apple Pay payment flow
let paymentRequest = applePayHandler.startApplePayPayment(amount: amount)
applePayHandler.handlePaymentAuthorization(paymentRequest: paymentRequest)
} else {
failedUI()
}
}
`
This is where i'm using it.
OK, was the apple pay paymentsheet dismissed successfully?
Do you see any error logs in xcode?
LOG ANALYTICS: stripeios.token_creation - [(key: "token_type", value: "apple_pay"), (key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "apple_pay_enabled", value: 1)]
LOG ANALYTICS: fraud_detection_data_repository.api_failure - [(key: "error_type", value: "com.stripe.lib"), (key: "error_code", value: "40")]
LOG ANALYTICS: stripeios.payment_method_creation - [(key: "source_type", value: "card"), (key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "apple_pay_enabled", value: 1)]
These 3 logs are coming on Xcode.
Was the PaymentIntent creation successful?
completion(clientSecret, nil)
}
Looks like your code won't execute completion if paymentIntent creation failed
It never reaches that part.
print("INTENT CREATINGGG")
this never appears in the logs.
Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details
I don't see a merchant ID on stripe dashbaord.
I setup one on Apple Developer portal which is
merchant.benefi
No, I need your Stripe Account ID (e.g., acct_xxx), you can find it from the Stripe Dashboard -> Settings ->Account Details
acct_1PXaSGL8yY0HPNsk
https://dashboard.stripe.com/test/logs/req_hb4yCe3ZiQXk6b I can confirm that the payment method was created successfully
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
so why is it not processing?
I need to investigate further. Can you write in to support and attach a sample xcode project that i can run and reproduce the same problem?
Hello @echo sundial, we have sent you a direct message, please check it at https://discord.com/channels/@me/1331180318140661782
- ๐The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.