-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
submitPayment returns error "Invalid scope" #11
Comments
Hi @Perjan, |
Thanks Christian, will try it out and let you know.
Also the Challenge closure is not that well documented.
A little help on that one.
…Sent from my iPad
On 3. Apr 2017, at 09:00, Christian König ***@***.***> wrote:
Hi @Perjan,
the tanSchemeID should look something like "M2132899.9". You have to get the ID from the supportedTANSchemes property of your account.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
You can check out the test cases, to see how it works. For example testCreateModifyAndSubmitPayment() hast the challenge closure. |
Thanks a lot @CodeStage, I will check them out today and tomorrow and let you know. |
Hey @CodeStage I changed my method today, created a new ChallengeResponder object, passing the accountID of a demo GiroAccount, and passing the tanSchemeID of an iTAN. Now I can create a payment successfully, but when I submit it, I still get the "Invalid Scope" error. Please help me resolve this. |
@Perjan Did you look at the "testCreateModifyAndSubmitPayment" test case? |
@CodeStage yes I did, and I took the ChallengeResponder and the PinHandler objects from it, pasted them into my method, but still I am getting an invalid scope. Could it be that the demo account provided by figo cannot do payments? Thanks, |
@CodeStage Can you please help me out with this issue? Thanks a lot, |
@Perjan I'm afraid I can't help you. I verified that the test case is still working and it is. It uses the demo account to create and submit a payment. So you should be able to setup the demo account with your user and after downloading the account object you should be able to create and submit payments with the IDs from that object. |
I am using also the demo account. I can create a payment, and I get a successful response. The issue is with the submitPayment method, I get a failure out of that... That is why I thought maybe there is an issue withe API keys that I am using. |
Yeah, maybe you should try to rule that out by asking [email protected] if you are using the right keys. Plus they might be able to tell you in which case they are sending you the "Invalid Scope" error. |
Awesome, thanks for helping me out. Cheers, |
Hello guys,
I am having an issue submitting a payment. I am trying to submit a demo payment with the demo account provided by you.
Steps:
createPayment(_ parameters: CreatePaymentParameters, _ completionHandler: @escaping (FigoResult<Payment>) -> Void)
Payment
object backsubmitPayment(_ payment: Payment, tanSchemeID: String, pinHandler: @escaping PinResponder, challengeHandler: @escaping ChallengeResponder, _ completionHandler: @escaping VoidCompletionHandler)
After that I get the error "Invalid scope" with the code "90000"
What am I doing wrong?
Maybe the tanSchemeID is wrong?
Thanks in advance.
The text was updated successfully, but these errors were encountered: