#ray_affirm-testing
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/1387011871697014844
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ray_docs, 1 day ago, 11 messages
Hi 👋
Can you share the code you are using to call createAffirm?
When I set name="LeBron James", it can be pulled up normally, but when I assign Ray, the Affirm page cannot be pulled up.
I am using a test environment
The parameters you are passing are basically what we describe in our API reference. In this case the name attribute is a full name as our API ref mentions here. Because of this, there is a validation requiring at least two names (given & surname).
OK, thanks
I also found that the document (https://docs.stripe.com/payments/affirm/accept-a-payment?payment-ui=direct-api#web-test-integration) does not provide an account number. When I pull up the affirm payment page, the page asks me to enter a phone number, but I don’t have a test account. How do I get a test account?
No because it's up to the Customer to authenticate with Affirm. The merchant integration does not provide the account number. Ass for authenticating, the only advice we have is
When redirected to the Affirm sandbox, Affirm may ask for the last four digits of your SSN. Affirm suggests using '0000' or '5678'.
The page I entered is like this. Isn't this the page for the sandbox environment?
That does appear to be the Affirm sandbox. Unfortunately Stripe doesn't control how that appears or what information they request. However, I can ask that we collect test mode phone numbers.
Can you try 10000000000? Just in case
This doesn't work. I tried to enter a maximum of 9 zeros.
I'm asking my colleagues. if we know of any test numbers for this.
okay
try entering all zeros
you have a 1 at the start
You can see is the banner at the bottom of the screen, they have already shared the test mode code you should use
Can you share the Payment Intent ID?
How to check Payment Intent ID?
Okay my colleague just found in Affirms testing doc that you can provide any valid US phone number and this number won't actually be contacted so you don't need access to it.
The following is 123456. I tried it and also tried entering all 0s, but it didn't work.
123456 is the confirmation code. As I mentioned, you need to provide a valid US phone number.
I am debugging a Canadian number now, so I should also use a Canadian number, right?
The Affirm doc says:
A valid US cell phone number (you do not need access to this number)
We don't control Affirm's sandbox so we have go off what they provide
okay
Regarding the name parameter, if our customers only leave their first or last name, how should we handle it? Without forcing customers to keep both their first and last name,
Affirm requires a full name so that is what you need to collect
I didn’t see this sentence “A valid US cell phone number (you do not need access to this number)” in the document. Could you send me the link to your document?
Use Affirm’s sandbox environment to test your integration before going live. Validate checkout, authorization, capture, refunds, and error handling to ensure a seamless user experience. Follow best practices for order management and switch to production when ready.
A valid US cell phone number (you do not need access to this number) that you will use in all subsequent checkout attempts
It is in the Initiate and Abandon Affirm Payment Flow section
Verification passed, thank you very much
Great 🙂 Happy to help