#eef_code

1 messages ยท Page 1 of 1 (latest)

bold crystalBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

noble cloud
#

What are you using to accept payments? Payment Element? Checkout? etc.

safe dawn
#

Itโ€™s a custom checkout. I am using stripe js, elements and generating a token but our customers can pay via link

#

I can see the link pay icon in my development environment but I think it goes to the production login etc so I am not sure how I can pay by link in development to test some features

#

If I could add a link payment method to an existing customer in the test mode stripe dashboard that would be great but I am only able to add a bank or credit card

noble cloud
safe dawn
#

Yep

noble cloud
#

Also, I'm still not sure what integration path you're using. Tokens and elements could mean a number of different things with stripe.js

safe dawn
#

I am using react stripe js and CardElement. This generates a form with a credit card field and also an option to pay using Link. Some of our member have selected to pay by Link. When they submit the form the stripe js library sends the information to stripe and a token is returned like tok_xxxxxxx. That is then submitted to our backend and added to the customer.

#

I am wondering how a can do this in test mode? Is it possible to have the Link button work in test mode or manually add a Link payment method to a test customer? I have tried to create a Link payment method via the API but it informs me that it is not allowed

#

My goal is to test creating subscription schedules on members with Link as a payment method.

#

But I am unable to add Link in test mode. Hopefully this helps ๐Ÿ˜

noble cloud
safe dawn
#

Ok. I have the implementation of Link works in live. The implementation is fine. It works great.

noble cloud
#

How is it implemented?

safe dawn
#

It is implemented with react-stripe-js

#

the checkout is fine, link works fine

#

so the Link implementation works. I have no issue with the implementation. My question is how do I add a Link payment method to a customer in test mode for testing? The screenshot above is test mode and when I click Link it goes to Live

noble cloud
#

An email is provided during the Link payment flow, right? If not, you're probably already logged in. All the same the email of the Customer that logged in would be the one for the Customer that it's attached to, as far as I know

safe dawn
#

i know that, but I just want to add Link to a customer in test mode

#

is that possible?

#

how do i add a Link payment method to test?

#

4242 4242 4242 4242 is used to test visa credit cards. but what is the process to test Link?

noble cloud
safe dawn
#

when i click the link button, is there a test email address?

noble cloud
#

No, you use a real email with a test passcode

safe dawn
#

yea, this seems to be what im not 100% sure on the language "You can create test mode accounts for Link using any valid email address" when the window pops up i can put any email address in?

#

AAAHHH haha i just got it

#

right, so the window that pops up is in test mode, i see

bold crystalBOT
safe dawn
#

it works!

noble cloud
#

Woo!

safe dawn
#

thank you so much, i was confused with my real link account being logged in, i assume it was not in test mode!

#

life saver!