Page 1 of 1

problem with stripe payment.

Posted: Tue Dec 06, 2016 12:35 pm
by Terry Gilliver

I have a stripe payment set up in my app, but is returning 401 Unauthorised. Also invalid key:

Image

Image

I am using "Bearer<space>sk_test............." for my api key which is the same that I use in another app that works ok.

It seems to be returning a token which is passed to the card parameter, but for some reason I am getting an error. Any ideas?


problem with stripe payment.

Posted: Sun Dec 11, 2016 2:25 pm
by Serhii Kulibaba

Please provide us with a public link for these both apps: (https://docs.appery.io/docs/testingan...) and exact steps to reproduce this problem.


problem with stripe payment.

Posted: Mon Dec 12, 2016 12:48 pm
by Terry Gilliver

I have shared both apps with support.

The working app: MyInvoiceBuddy

pre
login with username: terry
password: ravine

Click Invoices
Click Payments
Select an Invoice
I entered:
4242 4242 4242 4242 for card number
11/18 for expiry date
123 for cvc

Click Pay Now
/pre

Result: Payment is successful no console errors.

The non-working App: OWD for Instructors

pre
login with adinumber: 222222
password: ravine

Click Invoices
Click Payments
Select an Invoice
Change the select box to 'card'
Click Pay

I entered:

Code: Select all

       4242 4242 4242 4242           for card number 
       11/18            for expiration date 
       123               for cvc 

Click Pay Now
/pre

Result: 401 (Unauthorized) in console


problem with stripe payment.

Posted: Tue Dec 20, 2016 10:59 am
by Terry Gilliver

Any update on this?


problem with stripe payment.

Posted: Sat Dec 24, 2016 3:09 pm
by Illya Stepanov

Terry, we are sorry for the delay our engineer is investigating your case but this takes additional time.


problem with stripe payment.

Posted: Mon Dec 26, 2016 9:49 pm
by Serhii Kulibaba

Sorry, but there are no "Invoices" button on the page "Menu"
in "OWD for Instructors"

If I open a page "InvoiceMenu" forced (by changing an URL), select a payment and
click a button "pay" on the page "TakePayment" I get an alert "Marked Paid", but no stripe page here.


problem with stripe payment.

Posted: Thu Dec 29, 2016 3:50 pm
by Terry Gilliver

Sorry there was an incorrect setting in the profile, you should be able to see it now, and you need to select card payment rather than cash or cheque


problem with stripe payment.

Posted: Thu Jan 05, 2017 1:07 pm
by Serhii Kulibaba

1) In the service "tokenDS" please add JS lines:
prereturn value;/pre for these parameters: Image

2) In the service "paymentDS" please add a mapping arrow to the header parameter "Authorization": Image

Now it seems to work, after these changes


problem with stripe payment.

Posted: Thu Jan 05, 2017 5:23 pm
by Terry Gilliver

Thanks Sergiy, must have missed that