gotsunami / mangopay2-go-sdk Goto Github PK
View Code? Open in Web Editor NEWA Go library for the MangoPay HTTP REST api v2
License: MIT License
A Go library for the MangoPay HTTP REST api v2
License: MIT License
First, thanks a lot for all the work (it saved me a lot of time)
I'd like to do pre-authorizations as defined here: https://docs.mangopay.com/api-references/card/pre-authorization/
I can do a pull request if you prefer
Thanks again
Hi,
On this line https://github.com/gotsunami/mangopay2-go-sdk/blob/master/service.go#L199 it is assumed that resp != nil
which is not always the case. If
resp, err := DefaultClient.Do(req)
returns an error you can have resp == nil and then you'd get a panic (just happened to me):
runtime error: invalid memory address or nil pointer dereference
I've been working with your SDK and I haven't found anything about adding query params to the requests.
I'm talking about this: https://docs.mangopay.com/api-references/sort-lists/
Is there any way to add those query params?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.