stripe-archive / accept-a-card-payment Goto Github PK
View Code? Open in Web Editor NEWLearn how to accept a basic card payment on web, iOS, Android
Home Page: https://stripe.com/docs/payments/accept-a-payment
License: MIT License
Learn how to accept a basic card payment on web, iOS, Android
Home Page: https://stripe.com/docs/payments/accept-a-payment
License: MIT License
If you enable 'dark mode' on iOS 13 then all of the input text will become invisible.
When you first launch the app some of the text is visible, but when you tap into the text field and try to enter text it will be invisible.
"message": "You need to provide a description for export transactions.",
"type": "invalid_request_error"
stripe-php version : 6.31
A clear and concise description of what the bug is.
Steps to reproduce the behavior, please provide code snippets or a repository:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
A clear and concise description of what the bug is.
Steps to reproduce the behavior, please provide code snippets or a repository:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
Good morning,
I'm integrating the solution server PHP without webhook but there's something wrong with the declined payments (e.g. using 4000 0000 0000 9995).
The browser debug is giving me these 2 feedback:
Actually I also found a small typing error at line 64 in script.js and I solved it.
It has to be pay.php instead of /pay
Successful payments are working properly, including the ones with authentication.
The problem I have it seems to be related only to declined payments.
Thank you for the kind support and for the very useful library!
Best regards.
script.js:117 Uncaught (in promise) TypeError: Cannot read property 'json' of undefined
Below line gives above error
return result.json();
Hello team. I'm using android sdk and node backend for my application. I'm using the sample provided which is without the webhook call.
When I enters the card details and submit for payment it throws error like. :
As per indian regulation, export transaction requires a description.
I've attached screenshot.
https://drive.google.com/open?id=1jSbsVIWsh-TzQWqTIB84m08PG9lzXUEk
Hi, there, I am using the android as client and php as server.
The php = 7.2, stripe/stripe-php = 7.0.
The response json is generated by the following php code sample.
$output = [ 'publishableKey' => $config['stripe_publishable_key'], 'clientSecret' => $paymentIntent->client_secret, ]; echo json_encode($output);
When I pass the json string from server side to the gson.fromjson() at client side, it outputs the error 'expected BEGIN_OBJECT but was STRING at line 1 column 1 path $'.
What I found is that a 'POST' keyword is added at the beginning of json string, which caused the parsing failure of gson. The gson seems to expect something like {\json_content}. But now it gets POST{\json_content}.
I am confused about the reason why the 'POST' is added. Is there any way to solve this problem?
iOS object-C target run error
When I download the project from github, it reports an error directly after running pod install, because it is cocoapods installation that I can’t change the code, please tell me how to solve this problem
A clear and concise description of what the bug is.
Steps to reproduce the behavior, please provide code snippets or a repository:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
A clear and concise description of what the bug is.
Steps to reproduce the behavior, please provide code snippets or a repository:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
A clear and concise description of what the bug is.
Steps to reproduce the behavior, please provide code snippets or a repository:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
Excuse me, I want to ask a question, when I know the bank card information, can I automatically fill in the input box?
After successful payment, why do I receive two callbacks,
One is charge.succeeded,
The other is payment_intent.succeeded.
The node implementation in the without hooks code set is not working.
To get it working the following needs to be added near the top of server.js
var bodyParser = require('body-parser');
app.use(bodyParser.json());
PaymentIntent not found when submitting payment. Error: "PaymentIntent hasn't been created".
Using iOS Objective-C client and Node (using webhook).
I can't push amount value for payment to stripe in my angular js project.
Code is below here::
<button (click)="pay('{{milestone.milestone_value}}')" class="btn btn-primary btn-block">Pay {{milestone.milestone_value | currency: '$' }}
Please help me to set the amount into "pay(???)"
Thanks in advance.
I'm testing the "without-webhooks/server/php/public" sample with Internet Explorer 11.
However, the page is not displayed well in Internet Explorer 11.
In addition, it has been confirmed that it can be used normally with Firefox and Chrome.
How can I make it available on Internet Explorer11?
cd without-webhooks/server/php/public
php -S 127.0.0.1:4242
An input form for credit card information is displayed, and payment is completed normally.
CardInputWidget How do Cardinals change the font color entered?
Notice: Undefined property: stdClass::$paymentMethodId
I am using 3d secure card for completing payment. After clicking on complete button in popup this shows a notice:-
Undefined property: stdClass::$paymentMethodId in pay.php file with line if($body->paymentMethodId != null)
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.