#meeelaardiayon_code
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/1234311354505232426
π Have more to share? Add more details, code, screenshots, videos, etc. below.
This is our recent debug
Can you share which integration doc this integration is on and also the code in your video? It'll be helpful to share the public accessible URL of this website as well
Hello @patent bison , this is the doc https://docs.stripe.com/js/including
This is the public URL of the test stripe component
https://allergyfacts--posipay.sandbox.my.site.com/webhook/s/?
The code in the video
In the code of this video, I don't see submit() being called anywhere.
Why are there three sets of integration in your code - Split Card Element, Payment Element and embedded Checkout?
Which one is throwing the error?
Can you simplify the code to the integration type that is having the issue?
There should only be one integration type in a checkout flow
Okay, we will simplify the code. Give us 5 mins please.
Please reload the public url @patent bison and this is the simplified code.
Can you also share the URL of your development website?
We develop that in salesforce. I can't give the credentials to you as it was a client org but this is the url.
https://allergyfacts--posipay.sandbox.my.salesforce.com
Where did you get this integration information from? With split card element, there is no need to use submit()
I'd recommend the example code of Split Card Element here: https://glitch.com/edit/#!/pi-split-elements
We need to use the the payment and the creation of tokenisation separately
We have 2 test cases
- Process the payment and pass metadata parameters.
- Create a customer from card element - no payment involve
@patent bison we also confirmed that stripe elements are not compatible with old orgs. We test it on one of our old developer org that was created last 2015.
we also confirmed that stripe elements are not compatible with old orgs. We test it on one of our old developer org that was created last 2015.
I'm not too sure what this means. Are you referring to Stripe account?
We need to use the the payment and the creation of tokenisation separately
Am I right that you would like to use Split Card Element to create a payment method first, then make a payment if necessary?
We need to split because we need to pass metadata before the payment attempt
re: I'm not too sure what this means. Are you referring to Stripe account?
No, I'm referring with salesforce orgs
re: Am I right that you would like to use Split Card Element to create a payment method first, then make a payment if necessary?
Yes, that is correct.
For Salesforce orgs, we don't know how it works, so can't provide any advice.
For Split Card Element, the steps will be:
- Mount Split Card Element
- Upon clicking the button, use
stripe.createPaymentMethod()to create a payment method: https://docs.stripe.com/js/payment_methods/create_payment_method - (optional) Use payment method created in Step 2 for payments
Ah yes, we are aware of that one but our challenge is on the 3rd step. We can't proceed to payment but there were no error log. So are not sure where to start debugging and can't see what's in the payment function.
How did you handle the third step? It should be just stripe.confirmCardPayment with payment_method. However, I don't see it in your code
@patent bison we've tried the code from glitch but same issue.
If you only use vanilla HTML and JS (Not in lightning web component), does it work?
We can't use that in salesforce
It will sure work I suppose
Is there any way we can debug the library?
I'm afraid we don't know how lightning web component works. It's likely that there are third-party library or plugin preventing it from working
Is there any explanation as to why there is a response during validation e.g. expired card, wrong client secret but no response during payment attempt?
Which response are you referring to? What is the function you attempt to call?
Is it stripe.confirmCardPayment()?
the confirmCardPayment method
Yes
In the request https://dashboard.stripe.com/test/logs/req_Im5dJ8T9rxRxzH of your example code, the confirm request was made to Stripe successfully and the response was returned
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
error is expected to be empty if there is no error
Did you log entire response from stripe.confirmCardPayment(). For example,
const result = await stripe.confirmCardPayment(...);
console.log(result);
I don't see that in your code
What should I refresh?
Do you mean this? https://allergyfacts--posipay.sandbox.my.site.com/webhook/s/
This is the error I faced
Yep, please refresh again. We provided the right access, aplogies.
const a = yield t.getStripe.confirmCardPayment(s, r); doesn't reach to Stripe. Stripe didn't receive the confirm request for this payment intent with stripe.confirmCardPayment(): https://dashboard.stripe.com/test/payments/pi_3PAkekHkqCNx8Iwk0ewrlRp1
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
let r = {};
r = {
payment_method: {
card: t._cardNumberElement
}
};
This doesn't look right to me. Are you passing payment method ID or card element?
Sorry! I double check the confirmCardPayment(), the spec looks correct to me.
Can you log t.getStripe and see what's inside? When I put a break point on const a = yield t.getStripe.confirmCardPayment(s, r);, nothing went through
Okay sure. No problem.
I can't spot any issue. If you don't use t.getStripe, but use:
const stripe = Stripe('pk_test_xxx');
stripe
.confirmCardPayment('pi_xxx_secret_xxxx', {
payment_method: {
card: cardNumberElement,
},
})
@patent bison so u mean, no issue with the code?
Hi @remote anchor I'm taking over this thread.
Hello @slender zephyr good afternoon
It's a long thread, is your latest question about why 't.getStripe.confirmCardPayment` not getting called?
Have you tried what river suggsted? i.e. using stripe directly?
Yes, please check this URL
https://allergyfacts--posipay.sandbox.my.salesforce.com/
Salesforce Customer Secure Login Page. Login to your Salesforce Customer Account.
It did not go through as well
This page asks for login
Sorry, send the wrong one
here is the url
https://allergyfacts--posipay.sandbox.my.site.com/webhook/s/