You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first perform a Init(), successfully, then the client fill the form and get a token from the external banking service.
Then, I have to call register on the same CardRegistration object, the problem is that I lose it because it's instantiated during the first request (before the form filling). If I create a new CardRegistration object, I get this error : "card registration process not initialized. Did you call Init() first?"
So my question is : how should I keep the CardRegistration object during all the process ?
Thanks in advance
The text was updated successfully, but these errors were encountered:
It might not be obvious in the documentation, but after you call Init() you must put the returned values into your form, as hidden fields for instance.
That way, when the form is submitted back by the user, you can retrieve the wanted values as well.
Hello !
I'm having some problems to register a new credit card.
I follow the process you explain here (https://godoc.org/github.com/gotsunami/mangopay2-go-sdk#MangoPay.NewCardRegistration)
I first perform a Init(), successfully, then the client fill the form and get a token from the external banking service.
Then, I have to call register on the same CardRegistration object, the problem is that I lose it because it's instantiated during the first request (before the form filling). If I create a new CardRegistration object, I get this error : "card registration process not initialized. Did you call Init() first?"
So my question is : how should I keep the CardRegistration object during all the process ?
Thanks in advance
The text was updated successfully, but these errors were encountered: