Accept an EPS payment
Learn how to accept EPS, a common payment method in Austria.
EPS is a single use payment method where customers are required to authenticate their payment. Customers pay with EPS by redirecting from your website, authorising the payment, then returning to your website where you get immediate notification on whether the payment succeeded or failed.
Note
Your use of EPS must be in accordance with the EPS Terms of Service.
Set up StripeServer-sideClient-side
First, you need a Stripe account. Register now.
Server-side
This integration requires endpoints on your server that talk to the Stripe API. Use the official libraries for access to the Stripe API from your server:
Client-side
The Stripe iOS SDK is open source, fully documented, and compatible with apps supporting iOS 13 or above.
Note
For details on the latest SDK release and past versions, see the Releases page on GitHub. To receive notifications when a new release is published, watch releases for the repository.
Configure the SDK with your Stripe publishable key on app start. This enables your app to make requests to the Stripe API.
Create a PaymentIntentServer-sideClient-side
A PaymentIntent represents your intent to collect payment from a customer and tracks the lifecycle of the payment process.
Server-side
Create a PaymentIntent
on your server and specify the amount
to collect, and the eur
currency (EPS doesn’t support other currencies). If you have an existing Payment Intents integration, add eps
to the list of payment method types.
Client-side
On the client, request a PaymentIntent from your server and store its client secret.
Collect payment method detailsClient-side
In your app, collect your customer’s full name.
Submit the payment to StripeClient-side
Retrieve the client secret from the PaymentIntent you created, create an STPPaymentMethodBillingDetails with the billing details, and call STPPaymentHandler confirmPayment. This presents a webview where the customer can complete the payment. Upon completion, the completion block is called with the result of the payment.