Stripe (Tokenized)
Take card payments through Stripe's secure card field on your own pages, and let clients keep a card for later payments and automatic renewals.
Reaching the Screen
Go to Settings → Financial → Payment Gateways, open All Modules and click the Stripe (Tokenized) card: {admin}/modules/payment?module=StripeTokenized
Adding the gateway to the method list clients see is covered in Payment Configuration.
What Is on the Screen
One short settings form: the Stripe key pair, the notification signing secret and the shared gateway settings every module carries.
The client types the card into Stripe's secure card field, shown inside your checkout, invoice and add-funds pages. The card number goes straight to Stripe and never passes through your server. A card that needs 3-D verification opens the bank's check and then returns to your site.
The module also stores cards for later use, charges a stored card automatically and refunds a payment from the invoice screen. It does not open subscriptions and does not offer installments.
Before You Configure It
- A Stripe account with its key pair. Test keys and live keys are two separate pairs.
- The currencies you sell in enabled on the Stripe account.
- For stored cards and automatic renewal payments, this module selected under Card Storage Module on the Initial tab.
Fields
The key pair alone decides the environment: test keys charge in a Stripe sandbox, live keys take real payments.
Status, Commission Rate (%), Converting Currency, Accepted Amount Range and the country lists work the same way in every gateway. See Payment Configuration. Callback URL, Success URL and Failed URL cannot be edited: copy them with the icon at the end of the field.
Tasks
Take the keys from Stripe
- Sign in to the Stripe dashboard. For test keys switch to a sandbox from the account picker; for real payments stay in live mode.
- Open the Developers menu, click Workbench and go to API keys.
- Copy the publishable key and the secret key from Standard keys. Sandbox keys start with pk_test_ and sk_test_, live keys with pk_live_ and sk_live_.
- In live mode a secret key you created is shown once. When it is lost, roll it from the same page and copy the new value.
Enter the credentials
- Open the module card and tick Status. The other fields stay locked until you do.
- Fill in API Key and Secret Key from the same pair.
- Click Save Changes. Clients who pick this method now see Stripe's card field.
Let clients keep their card
- Go back to Settings → Financial → Payment Gateways and open the Initial tab.
- Choose Stripe (Tokenized) under Card Storage Module and click Save Changes.
- Clients can now add a card from their account, pick a stored card at checkout and turn on automatic payment.
What the client goes through
- The client selects the card method at checkout, on an invoice or when adding funds.
- The client types the card into Stripe's card field, or picks a card kept earlier. Ticking the save box keeps the new card.
- If the bank asks for 3-D verification, the client confirms it and comes back to your site.
- The charge closes the invoice and the service is activated.
How the client adds a card from the account
- On the Saved Cards tab of the account settings, the client clicks Add Card and then Continue.
- A Stripe window opens. The client types the card and clicks Save card.
- If the bank asks for 3-D verification, the client completes it in the same window.
- The window closes and the card appears in the list under the account holder's name.
Charge renewals from a stored card
- The client turns on automatic payment for a stored card in their account.
- On a due renewal invoice the system uses account balance first, then the stored cards in the client's order of preference.
- A successful charge closes the invoice. When every card fails, the client receives the failed-payment notification and the invoice stays open.
Refund a payment
- Open the paid invoice: {admin}/invoices/detail?id={invoice}
- Change the status to Refunded, choose Refund via payment gateway and click Update Status.
- Stripe returns the invoice's payment to the card. When one charge closed several invoices, each invoice returns only its own share.
In 5.0-beta.4 and earlier, a charge that closed a single invoice cannot be refunded through the module. Refund it from the Stripe dashboard, then mark the invoice Refunded with Add as expense.
Things to Watch
A card added from the account is saved through a Stripe setup step, so nothing is charged to the client.
The card row keeps only the token and the last four digits. Removing the card detaches the token at Stripe, so any automatic payment that relied on it stops working.
The card form sends the card number through your server, which Stripe accepts only on accounts approved for raw card data. On a standard account new-card payments, card storage and automatic renewals fail; use Stripe (Checkout) until you update. Storing a card charges 1 US dollar that is not refunded. A card asking for 3-D verification does not return to your site; the invoice stays open although Stripe took the money. The Test Mode switch on those versions only changes the card lookup and does not choose the Stripe environment.
Required Privileges
Payment Gateways (MODULES_PAYMENT_SETTINGS) is required.
Related Articles
Vielen Dank für Ihre Rückmeldung!
Unser Support-Team ist rund um die Uhr für Sie da, wenn Sie oben nicht fündig werden.