Stripe Integration with Jetpack Compose - stripe-payments

I'm trying to implement a Stripe payment sheet within Jetpack Compose. However, it appears as if Stripe doesn't have integration with Jetpack Compose. Am I incorrect in this assumption? If so, how can I implement a payment sheet using out-of-the-box Stripe functionality? If not, is there any sense of when Stripe will release Jetpack Compose integration? I saw that Stripe has had this development on their backlog since at least 2021.
My code currently utilizes PaymentLauncher.rememberLauncher to confirm user payment and handle the payment result. However, it doesn't include functionality for the user to input payment details, so I'm currently hardcoding one of Stripe's test cards for testing purposes.
Note that my question differs from this one because the latter focuses on payment confirmation. That is, it pinpoints how to utilize Stripe in Compose to process payments given that the payment information is known. The crux of my question is about integrating a pre-built Stripe component that allows users to easily input payment information.

what do you mean by include functionality for the user to input payment details ? Or you are looking for a way to integrating CardInputWidget through Compose?

Related

How to integrate paypal with MEAN stack(Angular,Nodejs) for recurring payments?

I want to integrate stripe for monthly subscriptions for my MEAN stack website(Saas). I have been searching the docs but its very confusing for me. Also there is no proper mention of webhooks in the docs. Does anyone have a specific guide/resource or code on how to implement these recurring payments? also is braintree the same as paypal or are they different.

How do I add a pay later option with a Stripe payments integration?

I have an order form that uses a Stripe payment integration and I also want to add a checkbox for a option to "Pay Later" which will be an invoice directly to their company and in turn it will cancel the need for the Stripe payment. The problem i'm having is the Stripe library passes validation for card info and it stops the form submit if anything is empty or invalid in the Stripe integration.
Stripe has a guide for setting up future payments which covers a lot of scenarios. The basic, high-level steps are:
Create a Setup Intent
Collect payment information
Use the Setup Intent to set the payment information up for later use and attach it to a Customer object in Stripe
Once that's done you can then charge/invoice the Customer later.

Stripe - Using the right react frontend component for credit card storage?

I am working on a stripe backend in node and a react frontend, the idea being to create a platform for buyers and sellers. I have created the seller's side where users create connect accounts and add a bank to that account.
Now I want to set up the buyer's side. I want to be able to have a customer store their credit/debit card information to use to pay in the future. Below are my questions, they're a bit broad but I just want some basic guidance, not looking for code answers:
Should I aim to have users enter information and then have stripe create a customer object with all their information as a way of storing credit card info?
Can I use the react-stripe-elementslibrary to facilitate this process as it seems to be made to be secure? I've been looking at the examples but they seem to revolve around paying directly by inputting information to pay right away. Unless I am misunderstanding?
Should I aim to have users enter information and then have stripe
create a customer object with all their information as a way of
storing credit card info?
Yes, the main approach is to collect the card details which will produce a PaymentMethod object that you can then save to a Customer. The easiest way to do this is by using the SetupIntents API as described here:
https://stripe.com/docs/payments/save-and-reuse
If you follow that guide a PaymentMethod will be created automatically when you confirm the SetupIntent, and since you provide a Customer when creating the SetupIntent, Stripe will automatically save the PaymentMethod to the Customer.
Can I use the react-stripe-elementslibrary to facilitate this process
as it seems to be made to be secure? I've been looking at the examples
but they seem to revolve around paying directly by inputting
information to pay right away. Unless I am misunderstanding?
You should use the new React library from Stripe instead (assuming you're on React v16.8 and above):
https://github.com/stripe/react-stripe-js
The library is a simple wrapper around Stripe Elements which exposes an input field for your users to enter in their credit card details. When you use that pre-built input field from Stripe, they will automatically create PCI compliant forms for you: https://stripe.com/docs/security/guide. Otherwise, you would need to prove your business's PCI compliance annually which is a lot of work.
The client-side steps in the Save and Reuse guide all have a "React" tab that you can click on to show the React version (that uses the new react-stripe-js library):
https://stripe.com/docs/payments/save-and-reuse#web-collect-card-details

Recurring Payment in Kentico with Paypal payment option

What is the best way to implement the recurring payment in Kentico with Paypal as payment option? Is there any built-in webparts/modules available or do we need to customize the payment option.
I am using Kentico 10.
Your best approach is to create your own custom Paypal payment gateway and implementing the features you want. I did this with Authorize.NEt about a year or so ago without issue. The key is to build the payment gateway as if it doesn't even exist in Kentico.

Stripe - One Click Upsell Possible with stripe.js?

I'm making a simple stripe checkout using Leadpages. With that said, I'm only able to use stripe.js rather than all of the massive API features that Stripe has to offer.
After entering the credit card information, the customer will be sent to an upsell page. Is it possible to do a 1-click upsell using Stripe.js?
If not, I may have to look into other options.

Resources