accept-a-card-payment | Learn how to accept a basic card payment on web iOS | Ecommerce library
kandi X-RAY | accept-a-card-payment Summary
kandi X-RAY | accept-a-card-payment Summary
Learn how to accept a basic card payment on web, iOS, Android
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of accept-a-card-payment
accept-a-card-payment Key Features
accept-a-card-payment Examples and Code Snippets
Community Discussions
Trending Discussions on accept-a-card-payment
QUESTION
I'm using Stripe's PHP SDK in a Laravel project, and I'm having a weird issue with 3d secure payments.
PHP Version : 7.4 Stripe-PHP : 7.75.0
When creating a PaymentIntent on behlaf of a connected stripe account using the stripe_account
parameter, and the confirmation_method: 'manual'
parameter, there's alway an error stating:
This PaymentIntent pi_XXXXXX cannot be confirmed using your publishable key because its
confirmation_method
is set tomanual
. Please use your secret key instead, or create a PaymentIntent withconfirmation_method
set toautomatic
.
This is how I created my intent:
...ANSWER
Answered 2021-Apr-08 at 16:38In order to perform server-side (manual) confirmation, you want to follow this doc. Specifically, instead of using handleCardPayment
on the frontend, you use createPaymentMethod
on the frontend, use the resulting PaymentMethod with a PaymentIntent on the backend, and then confirm on the backend. The linked doc shows the exact steps.
And for the 3d secure, you need to add handleCardPayment
.
QUESTION
I'm new to Stripe payment and trying to integrate a stripe code following this github repository https://github.com/stripe-samples/accept-a-card-payment/tree/master/using-webhooks.
But so far every time I hit endpoint /create-payment-intent
I'm getting 404. The sample uses spark framework and seems like spark post interceptor does't get executed. I don't even get any logs on my Stripe account
ANSWER
Answered 2020-Feb-29 at 17:42You're using Spark framework along with Spring boot. It seems not working well along. The Spark routes are simply defined statically in the “Main” class. That is not a good design generally speaking due to well known reasons like testability and decoupling. Why don't you take advantage from using Spring RestController and create Controller endpoints for it like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install accept-a-card-payment
You can use accept-a-card-payment like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the accept-a-card-payment component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page