#n0ah9080

1 messages Β· Page 1 of 1 (latest)

bold barnBOT
frigid wraith
#

Not sure I get it. Can you describe the situation a bit more fully so I understand and can help?

rose oracle
#

Ive been forced to work on a no code website solution

They allow me to run my code in different blocks. Yes, its as much pain as it sounds ☠️

Since I can only run code in different code blocks there is no interception between them. I found out that it might be possible to stringify the card element, save it in localstorage/sessionstorage, and then retrieving it from there.

I tried doing the same with with the stripe object, but because JSON doesnt support functions it cannot travel with the stringified object. (I only have to do this because the same instance of the stripe object had to be used when tokenizing).

#

Ive been told it might be possible to serialize the function and utilize eval afterwards, but Im unsure about it because of the scope.

#

Is there any way to create an identical instance or such using built in Stripe.js functions?

#

Im pretty sure this is the last piece to solve this headache of a puzzle 🀣

frigid wraith
#

Oh wow. Interesting challenge

#

Ive been told it might be possible to serialize the function and utilize eval afterwards, but Im unsure about it because of the scope.
Where did you hear this?

rose oracle
#

(I would use api calls if they were PCI compliant but Im not sure they are 🀷)

rose oracle
#

I have to run for a second, Ill be back in about 15 minutes, hopefully this chat wont close πŸ˜₯

frigid wraith
#

Yeah I really don't think that would work, but I also haven't tested it

#

So I guess the part I'm confused about is why you need separate code blocks for intializing stripe.js and accepting payment/tokenizing via the card element

#

Can't you just wait to initialize stripe.js until the step you accept payment at?

rose oracle
#

Hey! Im back! πŸ˜‹

I was told to first create a card element, and then mounting it. That creates a input field in the Div

#

To create the card element I need to create a stripe object (because the function to create the card element is within it)

#

Id love to do it all in the same button, but I HAVE TO use the mounted field if I understand it correct? And therefore I think it would be difficult to both initialize stripe, create a stripe/card element, mounting AND tokenizing

#

There has to be some time inbetween the user input and the tokenization

frigid wraith
#

Ah so it has to do with the lifecycle of the environment you're in?

rose oracle
#

Its causing some issues indeed πŸ˜…

I dont want to waste your time any more than I have to πŸ™

Theres no parameters or such I could use when creating the stripe object?

rose oracle
#

Variables reset after a block is ran etc.

frigid wraith
#

Gotcha. This is tricky. let me think on it

rose oracle
#

Okay thank you πŸ₯°
Take your time!

Any help/ideas mean alot πŸ™

frigid wraith
#

Will get back to you

#

Also my colleague is curious. What no-code platform is this?

#

You'll have to use a stripe-hosted solution like Payment Links. They informed me what you're trying to do just won't be possible

rose oracle
rose oracle
#

That's what they're asking me to help them create πŸ˜…

frigid wraith
#

I thought you were accepting payments?

#

You're actually onboarding accounts?

rose oracle
#

Oh right 🀣

#

My bad, I apologize. I forgot to mention the thing I'm actually trying to create...

#

I only explained how it all worked...

#

When onboarding, I create an account and have to link a card to it. I'm on the latter part of that creation currently.

frigid wraith
#

Got it. You should use our hosted onboarding flow then

#

What type of connect account?

rose oracle
rose oracle
frigid wraith
rose oracle
#

Individual accounts for now, company accounts after that gets up and running

frigid wraith
#

The code block scope restriction prevents you from doing this on your site via the api

bold barnBOT
rose oracle
#

I talked to the boys just now and explained. πŸ˜‹

From your great help (I can't thank you enough for taking your time helping me out πŸ₯°) I can see 2 options being viable solutions? Correct me if I'm wrong πŸ˜…

We could either utilize your hosted onboarding (I'd love if you could link me some documents to point me in the right direction on this) or we could become PCI compliant and utilize your API to tokenize the card information. I know that using the API for tokenization would most likely be a worse option in the case of security, but it's the only option to create a fully custom onboarding page under these circumstances.

To me it sounds like they're fine with me moving over to the hosted onboarding for now, but would want to work further on this later on.

Could you link me some type of documentation or somewhat explain how to apply for PCI compliance at Stripe so I know what they would have to do if they decided to go for that option later on? (I'll have to check with Bubble.io and make sure they are πŸ˜…)

#

Long message πŸ˜…

frigid wraith
#

The hosted onboarding flow would be the least amount of friction

#

PCI compliance is complicated and we provide only limited guidance

#

It's your responsibility to consult legal counsel for advice on that

#

We cannot provide guidance on that though

#

Another alternative is to move away from a no-code solution

rose oracle
frigid wraith
#

Yeah I get that the decision isn't up to you. Just wanted to hint at it again haha

rose oracle
rose oracle
frigid wraith
#

No problem! Happy to help!

#

Also note this small section in the onboarding doc:
Connect Onboarding for Custom Accounts doesn’t collect the external_account requirement by default. To collect external_account, enable the Collect bank account information for payouts setting in Connect Settings. For more detailed instructions, refer to the Managing bank accounts and debit cards guide.

#

Since you need to collect external account it's important to note

rose oracle
#

Ahh perfect!

#

Have a great weekend! peepoHappy