Skip to content
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

Create charge amount from app #4

Open
baludonthula opened this issue Jun 20, 2016 · 2 comments
Open

Create charge amount from app #4

baludonthula opened this issue Jun 20, 2016 · 2 comments

Comments

@baludonthula
Copy link

baludonthula commented Jun 20, 2016

Hi Ravindra,
I have successfully got the token by passing the card details, now i want to pass amount to create charge,
while creating charge by using your module i am getting the following error please help me.

[ERROR] : Script Error {
[ERROR] : column = 332;
[ERROR] : line = 1;
[ERROR] : message = "undefined is not an object (evaluating 'r.charges.create')";
[ERROR] : sourceURL = "file:///var/containers/Bundle/Application/48F062B1-EC6C-44DF-8D8D-A2DE01A63AC8/staticFlowScreens.app/alloy/controllers/ravindraPayment.js";
[ERROR] : stack = "e@file:///var/containers/Bundle/Application/48F062B1-EC6C-44DF-8D8D-A2DE01A63AC8/staticFlowScreens.app/alloy/controllers/ravindraPayment.js:1:332";
[ERROR] : }

@max1020
Copy link

max1020 commented Jun 20, 2016

do you want to charge the user through the app (as opposed to through a server where the stripe library with the charge method is)? i dont think this works as charging a user requires the private stripe key (and this should not be distributed via the app). my understanding is that this module "just" gets the token and the actual charge takes place on a server

@RavindraChherke
Copy link
Owner

Hi,

After receiving you token from server send it to your server along with product information item id, price, delivery address etc.
You will need to implement further payment processing on your server like making a charge or creating a customer.

Follow the link below
https://stripe.com/docs/charges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants