#archas_error

1 messages ยท Page 1 of 1 (latest)

stark caveBOT
#

๐Ÿ‘‹ 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.

echo sundial
#

Hey @bold oasis. Any idea as to what the problem may be?

whole thorn
#

Hi @echo sundial can you show me your code?

echo sundial
#

sure.

whole thorn
#

And are you using PaymentSheet?

echo sundial
echo sundial
#

`
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.

whole thorn
#

OK, was the apple pay paymentsheet dismissed successfully?

#

Do you see any error logs in xcode?

echo sundial
#

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.

whole thorn
#

Was the PaymentIntent creation successful?

            completion(clientSecret, nil)
        }

Looks like your code won't execute completion if paymentIntent creation failed

echo sundial
#

It never reaches that part.

print("INTENT CREATINGGG")

this never appears in the logs.

whole thorn
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

echo sundial
#

I don't see a merchant ID on stripe dashbaord.
I setup one on Apple Developer portal which is

merchant.benefi

whole thorn
#

No, I need your Stripe Account ID (e.g., acct_xxx), you can find it from the Stripe Dashboard -> Settings ->Account Details

echo sundial
#

acct_1PXaSGL8yY0HPNsk

whole thorn
echo sundial
#

so why is it not processing?

whole thorn
#

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?

stark caveBOT
#

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.