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
Hi all,
I'm using this SDK with the demo credentials.
I was trying to test the payment, with this snippet:
constsubmitPayment=(accessToken,payment,tanSchemeId,state,redirectUri)=>{returnnewPromise((resolve,reject)=>{constsession=newfigo.Session(accessToken);session.submit_payment(payment,tanSchemeId,state,redirectUri,(error,returnUrl)=>{if(error){console.log(error);returnreject(error);}returnresolve(returnUrl);});});};constmockPayment={type: 'SEPA transfer',name: 'Koodaa',amount: 5.5,purpose: 'test',account_id: 'A1.1',account_number: '4711951502',bank_code: '90090042',iban: ''};test('should be able to submit payment',async()=>{// addPayment will call session.add_payment and return a payment objectconstpayment=awaitaddPayment(accessToken,mockPayment);// submitPayment will call session.submit_payment (check above code)constreturnUrl=awaitsubmitPayment(accessToken,payment,'111111','state');
...
});
Hi all,
I'm using this SDK with the demo credentials.
I was trying to test the payment, with this snippet:
And I got this:
Which I believe to be an error inside /lib/figo.js since it's doesn't invoke the callback with
error
butresult
, and thisresult
object is null.P.S: Please improve the documentation for this Nodejs SDK, I need to did into the source code to find out how it work. Thank you!
The text was updated successfully, but these errors were encountered: