Accept a card payment with Stripe on Android

Stripe Developers
Stripe Developers
16 هزار بار بازدید - 3 سال پیش - In this episode, you'll learn
In this episode, you'll learn how to confirm a card payment with the stripe-android client library in an Android application. Thor covers how to use the CardInputWidget drop in component.

This episode builds on the previous episode about setting up an ApiClient for making an HTTP request to the server to create a PaymentIntent: Setting up an API client in an Androi....

Table of contents

00:00 Overview
00:30 Create a new Activity
01:00 Create a simple layout
02:30 Configure the Stripe library
03:40 Make call to server to create the payment intent
05:55 Confirm the PaymentIntent
08:33 Handle the payment results
12:07 Handle errors
12:33 Test the demo

Server implementations

Ruby - Accept a payment - Create a PaymentIn...
Python - Video
PHP - Accept a payment - Create a PaymentIn...
Node.js - Accept a payment - Create a PaymentIn...
Java - Accept a payment - Create a PaymentIn...
Go - Accept a payment - Create a PaymentIn...
.NET - Accept a payment - Create a PaymentIn...

Other client implementations

Not using Android?  Consider these other episodes that cover the same content in different front end implementations:

HTML and JavaScript - Accept a card payment with Stripe.js
iOS - Accepting card payments with Stripe o...
React - Accept a card payment with React Stri...

Presenter

Thor Schaeff - Developer Advocate at Stripe - Twitter: thorwebdev

Resources

Official client library: https://github.com/stripe/stripe-android
Official documentation: https://stripe.dev/stripe-android/
Code: https://github.com/stripe-samples/acc...

Support
If you have a question, please feel free to reach out to our support team on Discord at https://stripe.com/go/developer-chat.

Updates
Sign up to stay updated with developer news: https://go.stripe.global/dev-digest

Feedback
If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88.
#Stripe #Payments
3 سال پیش در تاریخ 1400/02/07 منتشر شده است.
16,006 بـار بازدید شده
... بیشتر