44

Stripe Integration

DAP/Stripe Integration

Stripe is quickly gaining popularity as the go-to payment processor. It wins points for its incredible ease of use. Stripe charges a fee of 2.9% + $0.30 per successful charge.

Starting DAP v4.5, you can hook up the DAP Shopping Cart to Stripe.com for payments.

This document explains how to connect Stripe to the DAP Cart.

Please NOTE (IMPORTANT) :

1. Subscription Product:

If you sell subscription products using DAP + Stripe, you MUST define a PLAN with the EXACT same name as the DAP product, in your Stripe AccountBoth the PLAN ID as well as the PLAN NAME in Stripe MUST match the DAP product name. The plan ID in stripe cannot be a number. It needs to match the product name in dap otherwise Stripe will not charge the user’s credit card automatically every recurring cycle.

2. Coupon Code

If you use coupons, make sure to create coupon codes both in DAP and in Stripe, including for one-time paid DAP products, and even if Stripe says that Coupons are for Subscriptions.

API Key & Webhooks Setup

  1. Go to http://stripe.com/ and sign up for a stripe account if you do not already have one.
  2. Login to Stripe.com and visit this page in a browser –  https://manage.stripe.com/account
  3. Click on API Keys tab and copy the Secret Key and Publishable key and save it somewhere. You will need to update the DAP admin -> setup -> config -> Stripe section with these keys. If you want to test with Stripe in test mode, copy the test version of these keys. Otherwise copy the Live version of these keys. Please note: whenever you are ready to switch from test to live mode, you will need to use the live secret key and publishable key in DAP config.
  4. Click on Webhooks tab and update the webhooks URL to http://YOURSITE.com/dap/dap-stripe.php (Replace YOURSITE.com with the name of your site).

Save Stripe keys in DAP Config

  1. Enter the Stripe keys in DAP Setup > Config -> Payment Processing – Stripe.com

One-time Product Setup


If you only want to sell one-time purchase products, then you just need to create the product as a one-time product in DAP products page (set recurring to “NO” in price&recurring tab). You do not have to create product in Stripe.

Subscription / Recurring Product Setup

If you only want to sell one-time purchase products, then you can skip this step. If you want to sell Subscription/Recurring products using Stripe, then please read this section.

  • Visit the Plans page and click on NEW to setup a Subscription plan.

  • Create NEW plan in Stripe :

ID/Name Both ID and Name should eXactly match the ‘Product Name’ in DAP. So if the DAP product name is GOLD SUBSCRIPTION, then the Stripe plan Id = GOLD SUBSCRIPTION and the Stripe plan name should also be GOLD SUBSCRIPTION.

If the product name in DAP is EXAMPLE SUBSCRIPTION PRODUCT, then create a plan in your Stripe account with :
Stripe plan id: EXAMPLE SUBSCRIPTION PRODUCT
Stripe plan name: EXAMPLE SUBSCRIPTION PRODUCT

The plan Id in Stripe cannot be a number. It needs to match the dap product name.

Trial Period Days: If you want to offer trial for 7 days, set trial period to 7 and set initial recurring cycle in DAP to 7 days.. The actual trial amount can be set in DAP products page -> Price tab.Interval : If you set it to monthly, set the ‘Subsequent recurring cycle’ in DAP to 30 days.Amount: This should be set to ‘Subscription / Recurring’ amount. If you want to charge a different trial / initial amount, you can set that in DAP products page -> price tab -> Trial Amount.You can’t set that in Stripe because Stripe only allows for subscription amount.But the good news is… if you use DAP with Stripe, you can set the trial / initial amount in DAP and DAP will make sure the user gets charged the trial/initial amount first and then the recurring amount will be charged at the end of trial period.Lets take a look at DAP products -> Price&Recurring tab setup for 3 usecases:
– $0 Trial + $49.99 Monthly Subscription
– $10 Trial (14 day) + $29.99 Monthly Subscription
– No Trial + $9.99 Monthly Subscription

$0 trial for 7 days + $49.99 monthly (30 day) subscription
DAP setup :

Trial Price: $0
NOTE: If you do NOT want to offer trial OR if you want to offer $0 (FREE) trial, in both cases, set the Trial price = 0. During the payment button generation, you will be asked if the trial amount is set to 0 because it’s a FREE ($0) trial or if there is NO Trial. The button will be generated based on your input.

Recurring Price: $49.99
Recurring Count: 999
NOTE: The recurring count should be 999 or more (unlimited) because Stripe does not support limited recurring.

Recurring Cycle #1 : 7
NOTE: Set Recurring Cycle #1 (initial) to 7 for a ‘7 day’ trial. If there is no trial, then if you want to charge users every 30 days, set it to 30.

Subsequent Recurring Cycles: 30
Set subsequent recurring cycle to 30 for billing every 30 days (month)

$10 trial for 14 days + $29.99 monthly (30 day) subscription
DAP setup :
Trial Price: $10
Recurring Price: $29.99
Recurring Count: 999
NOTE: The recurring count should be 999 or more (forever/unlimited) because Stripe does not support limited recurring. The user will be charged every month until cancellation.

Recurring Cycle #1 : 14
Subsequent Recurring Cycles: 30

No Trial + $9.99 Monthly Subscription
DAP setup :
Trial Price: $0
If there is NO trial and you want to charge the user $9.99 upfront + 9.99 every month, then set trial price = 0 and during button generation when you are prompted with ‘do you want to offer free trial’, you can say NO and button will be setup correctly.

Recurring Price: $9.99
Recurring Count: 999
NOTE: The recurring count should be 999 or more (forever/unlimited) because Stripe does not support limited recurring. The user will be charged every month until cancellation.

Recurring Cycle #1 : 14
Subsequent Recurring Cycles: 30

Please NOTE: Make sure to first test each payment button before you go live.

DAP Cart Installation

Please read this document on DAP Cart Installation.

Generate Payment Button

You can generate ‘BuyNow’ button OR generate ‘AddToCart’ button.
If you want to allow users to purchase individual products directly, create Buy-Now button.
If you want to allow users to purchase add multiple items to a CART first and then checkout, use Add-To-Cart button.

Please see this document for more on buynow button generation.

Please see this document for more on add-to-cart button generation.

What makes DAP->Stripe integration unique?

1)   Trial Amount allowed

Normally Stripe prevents users from setting a trial amount that is different from ‘Subscription amount’. If you want to sell a subscription product where say your users pay $100 upfront and then $30 every month, you cannot do that with Stripe.  Normally you only have 2 options with Stripe –

Free trial followed by subscription payments

OR

No trial, just subscription payments.

So you can do $0 for 30 days and then $30/month OR you can do $30 every month including first month.

But the GOOD NEWS is that with DAP -> Stripe integration, we will make it possible to do Trial + Subscription. You can do $0 free trial or you can do a trial with ANY AMOUNT of your choice for your subscription products.  The ‘trial amount’ can be different from the ‘subscription amount’ because dap will make it possible.

2)  Instant Charge 

If you sell subscription products with Stripe, Stripe will store the credit card info and ensure it can be charged before returning a response. BUT it can take up to one hour for the invoice to be actually charged.  If you have a membership site where you want to allow INSTANT access to content after purchase and you want to make sure you received payment BEFORE you allowed access, then DAP will make it possible with Stripe by making sure the users are charged the first/initial fee INSTANTLY without delay before the access is granted to the product/content.

3) Access extended only upon  successful subscription payment

DAP uses pay-as-you-go-model with Stripe. Users get access only to what they paid for. If it’s a monthly subscription, they will get access only to the first month’s content upon initial payment. DAP integrates with Stripe Webhooks for subscription payments. When the next subscription payment goes through successfully, dap will automatically extend access by another 30 days (recurring cycle).

If a user cancels payment, DAP will no longer extend access as no more payments will come in, so the user will automatically lose access to product/content at the end of current recurring cycle.

4) Coupons

You can use the DAP Cart’s coupon feature and integrate it with Stripe coupons so users will see the discounted amount in the shopping cart after they apply a coupon and then Stripe will charge the correct discounted amount. You just have to match the coupon names and discount amounts in DAP and in Stripe. The DAP cart will support coupons for both multiple-items purchase (add-to-cart button) as well as single-item purchase (buy-now button).

5) Unlimited 1-click upsells / downsells

You can do an Unlimited number of Upsells and Downsells, and increase your sales by up to 30% with your existing products. Easy to configure. This feature offers Unlimited options and potential to grow your business.

6) Payment on your site

Users will stay on your site for Credit Card Payments. They will not get transferred to another site to make the payment.

7) PCI Compliance

DAP does not store the Credit Card information on your site so you do not have to worry about PCI compliance issues.

8) Paypal Integration

Integrated Credit Card (via Stripe) and Paypal (via Paypal Standard) payment option on the Checkout page. The users can pay using their Paypal account or using their Credit Card. So you will not lose sales from people that do not want to pull out a Credit Card for making the payment.

9) Pick your password

Allow your buyers to pick their OWN password for their membership account before purchase. DAP will use the user-picked password instead of generating a password for them.

10) Pre-registration / Capture email

Allow Pre-Registration (User account will be created with a status of “P”) even if the payment fails so you will still have a way to communicate with these users.

11) Automated card expiration email

The email will get sent ‘configured number of days’ before the card expires. DAP will now allow you to proactively communicate with a customer when their card is about to expire. DAP will pre-determine when a card is going to expire and send an automated e-mail to inform the member it is time to update their credit card info on file.

12) Customer facing interface for “Update CC and Billing”

Your users can update their Credit Card and Billing Info themselves without having to hand it to you to update. It will take you just a couple minutes to set this up on your site.

13) Single and Multiple item purchases

Multiple items can be added to cart (via Add-To-Cart button) before final checkout. Or you can create simple buy now buttons for single-item purchases.

14) Custom fields

Add any number of Custom Fields to your Checkout Page. As long as these fields have been defined as custom fields in DAP, you can capture them in the checkout page. It will be stored in the user’s profile.

15) Automated login

Users do not have to wait for ‘welcome email’ for their login / download credentials. They will get auto-logged-in to the member’s area upon purchase, and can be sent straight to the downloads page or welcome page.

16) Existing users login

Allow existing users to ‘log in’ on the checkout page itself, so the new product purchase can be attached to their existing membership account. Their existing billing and profile info gets pre-populated on the checkout page upon login.

Click Here to Leave a Comment Below 44 comments
sean - January 3, 2014

Hello, so in your opinion, especially for recurring, is stripe better?

Also, Its a bit unclear when you say you can’t set “paid trials” up in stripe and then you say you can in DAP. Do you mean, “DO not configure the recurring settings in STRIPE, ONLY do recurring settings in in DAP, if you have a paid trial”?

Also, you have an errror on page” this shoudl say “unlimited”
” because Stripe does not support limited recurring.”

Reply
Veena Prashanth - January 5, 2014

Hi Sean,

If you use Stripe by itself without dap, then you can do free trial but if you want to do say $1 trial followed by
$9.99 recurring, you cannot do that. Basically you cannot have a trial amount that is different from recurring amount.

But if you use dap with Stripe, you can set a ‘trial amount’ that is different from the recurring amount’. You can also do “free trial + recurring”.

>>Also, you have an errror on page” this shoudl say “unlimited”
” because Stripe does not support limited recurring.” << Stripe does not support limited recurring. It's correct. Stripe only supports unlimited recurring until cancellation. I did not find the error in the document. What am i missing? Thanks, Veena

Reply
sean - January 5, 2014

Hello VEena, thank you for the answer, that clarifies it. I can’t believe its unlimited recurring, you would think limited would be there, who wants to go in and turn it off after a 2 month reccuring like i have (2 installments) .

Any ideas for that? Can I have one product that is JUST paypal, the rest as Stripe ?

Thx

Reply
Veena Prashanth - January 5, 2014

The only way to manage it would be by having dap initiate the recurring charge each month with stripe instead of letting stripe handle it. It’s in our long term plans for dap. We will have to setup a new cron job to manage this. It’s a lot of work.

Sure, you can sell some products using paypal and some using Stripe. When you generate the payment button in dap, you can specify what payment processor you want to connect the button to.

Thanks,
Veen

Reply
sean - January 5, 2014

Very good thanks, your been very helpful. Makes sense.

Reply
Brett - January 9, 2014

Looks good, one question though.

When setting up the web hooks URL in STRIPE, you say set it to: http://YOURSITE.com/dap/dap-stripe.php

That does not seem secure, would it be better to set it to:
https://YOURSITE.com/dap/dap-stripe.php

Or is there some reason that STRIPE transmits over webhooks in http, instead of https?

Thanks,
-Brett

Reply
Veena Prashanth - January 9, 2014

Hi Brett,

Yes, as you will have https setup on your site to use the DAP cart -> Stripe, it certainly makes sense to use https instead of http.

Thanks,
Veena

Reply
Daniel - March 8, 2014

Can I setup a free 7 day trial with a one time payment in Stripe?

Reply
Veena Prashanth - March 8, 2014

Hi Daniel,

>> Can I setup a free 7 day trial with a one time payment in Stripe?<< No. Stripe does not allow limited payments. You can do $0 trial + unlimited recurring payments but can't do $0 trial + limited number of payments. Thanks, Veena

Reply
joe - May 31, 2014

So if I am going to use Stripe and Paypal I will need to create two buttons. One will be for Stripe where during the button creation I will select CC Only NOT Paypal and CC. And then create another button using Paypal where during the button creation select Paypal only.

Reply
Veena Prashanth - May 31, 2014

Hi Joe,
If you want an integrated checkout page that shows both CC + Paypal option, then create just 1 button with ‘allow both CC (Stripe) + Paypal ‘ option.

Thanks,
Veena

Reply
David - June 5, 2014

Veena

I love DAP

Real quick.

Are you still planning on adding limited payment workaround for stripe?

Example: $1 trial (7 days) then 2 payments of $97?

If so .. any estimated release date? 🙂

Reply
Veena Prashanth - June 5, 2014

Hi David,

>> Are you still planning on adding limited payment workaround for stripe?
Example: $1 trial (7 days) then 2 payments of $97? << Yes, still in our plans. Sorry, no dates yet. Dont want to make promises we can't keep. Stripe has added some new features as far as subscription plan setup is concerned (you can create custom payment interval) but they still do not allow limited recurring. Can you please check with Stripe support if they have plans on introducing limited recurring (recurring count) anytime soon? If they do, then dap has no upfront limitation. It will automatically work. Thanks, Veena

Reply
David - June 8, 2014

Veena

I emailed them and put in a feature request

Either way .. looking forward to this addition

Love DAP! 🙂

Reply
Veena Prashanth - June 8, 2014

Thanks David :).

Reply
Kheper123@gmail.com - September 8, 2014

Two quick questions.

First, how do I cancel a subscription payment if my members pay with stripe via DAP?

Second, are there plans to include Stripe in the User Subscription Cancelling feature you describe here – http://digitalaccesspass.com/doc/dap-user-subscription/?

Thanks – Kheper

Reply
Veena Prashanth - September 8, 2014

Hi Kheper,

>> First, how do I cancel a subscription payment if my members pay with stripe via DAP? < < You will have to cancel in Stripe directly for now. >> Second, are there plans to include Stripe in the User Subscription Cancelling feature you describe here – http://digitalaccesspass.com/doc/dap-user-subscription/? << Yes, we hope to include this in the upcoming DAP release. Thanks, Veena

Reply
Dennis - February 9, 2015

Hey Veena!

I’m working on integrating DAP -> Stripe and I have two questions:

1. I’m using a trial offer (30 days -> 99 cents, then recurring monthly charge of $4.97) and it looks like that can be done with stripe, but I also want to offer this through Paypal. Is that possible?

If not, is there a shopping cart that will allow trial pricing along with paypal, stripe and credit card processing?

2. It looks like I have to cancel memberships manually through Stripe. Do I also have to cancel it DAP or will the Stripe integration handle that?

Thanks!

Reply
Veena Prashanth - February 9, 2015

Hi Dennis,

>> 1. I’m using a trial offer (30 days -> 99 cents, then recurring monthly charge of $4.97) and it looks like that can be done with stripe, but I also want to offer this through Paypal. Is that possible? < < Sure, you can use the DAP Shopping Cart to offer both Paypal + Stripe (for CC) on the checkout page. When you generate payment button in dap, you can configure it to show both paypal + cc on the checkout page (step 2 of button generation process in dap payments=>generate payment button => DAP Shopping Cart tab).

>> 2. It looks like I have to cancel memberships manually through Stripe. Do I also have to cancel it DAP or will the Stripe integration handle that? << You can cancel in DAP and dap will complete cancellation in DAP and Stripe. See: 1) User Facing - http://digitalaccesspass.com/doc/dap-user-subscription/
2) Admin Facing – http://digitalaccesspass.com/doc/admin-options-for-cancel-refund/

Hope this helps.

Thanks,
Veena

Reply
Dennis - February 9, 2015

Thanks for the response!

So can I offer a trial price through PayPal as well?

-D

Reply
Veena Prashanth - February 9, 2015

>>So can I offer a trial price through PayPal as well?<< Yes. Can't do FREE ($0) trial but you can do $0.01 trial.

Reply
Rick - March 16, 2015

I have a client who has a requirement for using Stripe with his affiliate based system. As I’ve used DAP to replace amember and a few others in the past for other clients I’d like to suggest using DAP for him. Will DAP support Stripe Connect so that affiliates up to 3 tiers will be split/paid automatically as the Stripe documentations suggests is possible?

Reply
Veena Prashanth - March 16, 2015

Hi Rick,

Sorry, dap does not integrate with Stripe connect.

Thanks,
Veena

Reply
Laurent - July 16, 2015

Hi,

I have 2 questions :

1) Can I use DAP Cart on my product launch website with Stripe, and redirect customers on my membership website, which is another WordPress ?
(it works well with Clickbank but I don’t use DAP cart)

2) If I understood well, as today, it’s not possible to subscribe customers for a limited recurring payment if Stripe is used ?

Thanks,
Laurent

Reply
Veena Prashanth - July 16, 2015

Hi Laurent,

1. You can use the DAP Cart Payment link/button generated on the membership site anywhere you want. You can use it on the product launch site.

But once the users click on the button, they will be sent to the ‘checkout’ page that must reside on the site where DAP lives. The dap cart must be installed on the same site as DAP.

2. Correct. Stripe does not support limited recurring.

Thanks,
Veena

Reply
Ian - September 7, 2015

Hi,

I’m looking at DAP for an upcoming project and was wondering if there is any plans to move away from the recurring plans being initiated in Stripe and rather be initiated from the plugin?

DAP is my preferred option but I’m also wanting to incorporate payment plans and from what I can research DAP seems to the only membership plugin that operates in this manner.

Thanks!

Reply
TH - September 23, 2015

How do I set it up so subscribers cards will be charged instantly in the members area, if they want to buy an up sell? That would be much better than them having to put in there information again.

Reply
Veena Prashanth - September 23, 2015

– How do I set it up so subscribers cards will be charged instantly in the members area, if they want to buy an up sell? That would be much better than them having to put in there information again –

Please see – http://digitalaccesspass.com/doc/dap-pay-with-stripe/

Thanks,
Veena

Reply
Veena Prashanth - September 23, 2015

Hi Ian,

– DAP for an upcoming project and was wondering if there is any plans to move away from the recurring plans being initiated in Stripe and rather be initiated from the plugin? –

Yes, we do have that in our plans for DAP.

DAP is a self-hosted solution. DAP lives on your own site. If your site or server goes down, you might end up with missed payments. It’s more secure and safe to have the payment gateway/processor (like stripe) initiate it as you will not risk missed charges.

It’s a lot of work to build a retry mechanism to look for failed/missed payments and retry it. It’s also taxing on your server resources – especially on shared webhosting platforms.

That said, we do plan on offering this as an option to our users in a future release of DAP.

Thanks,
Veena

Reply
Sue - December 14, 2015

Hi Veena,
How do I do this?
12) Customer facing interface for “Update CC and Billing”

Your users can update their Credit Card and Billing Info themselves without having to hand it to you to update. It will take you just a couple minutes to set this up on your site.

Also how does someone cancel their subscription when you set it up through Strip and the DAP shopping cart? In paypal I could find the page to cancel or suspend their subscription. I can’t find that in Stripe.
Thanks, Sue

Reply
Veena Prashanth - December 14, 2015

Hi Sue,

1. Update CC and Billing

See – http://www.digitalaccesspass.com/doc/update-cc-billing-info/

2. Stripe Cancellation

See – http://digitalaccesspass.com/doc/dap-user-subscription/

Thanks,
Veena

Reply
Lou - December 14, 2015

Hi there, I’d like to formulate my funnel the following way:

Step 1) Main offer: $47 one payment product.

Step 2) 1-click upsell: $37/month recurring membership program with 7 days of free trial.

– Would that be possible using DAP and Stripe?

Also:

– When using Stripe to sell with DAP, is everything in the whole buying process fully translatable?

– Does DAP supports all of Stripe’s currencies (BRL specifically, in my case)?

If all these questions have positive answers, I’ll be a client. 🙂

Thank you!

Reply
Veena Prashanth - December 15, 2015

Hi Lou,

–– Would that be possible using DAP and Stripe?–

Yes, you can do 7-day free trial + $37/month recurring membership.

– When using Stripe to sell with DAP, is everything in the whole buying process fully translatable?–

You can customize it to some extent but no, can’t translate everything.

–– Does DAP supports all of Stripe’s currencies (BRL specifically, in my case)?–

You can specify the currency code when you generate the payment button. DAP will send it to Stripe.

Hope this helps.

Thanks,
Veena

Reply
Sue - January 25, 2016

Thanks for all your support!
Curious….are you working on an option to add tax to a product through the DAP shopping cart/Stripe integration?

Reply
Veena Prashanth - January 25, 2016

Hi Sue,

No plans to add tax support currently. The DAP cart only supports digital products.

Thanks,
Veena

Reply
Tanya Smith - February 7, 2016

Do you know if there’s been an update in Stripe’s features to support limited recurring billing since this post was written?

I was able to set up limited recurring payments with Stripe using Clickfunnels and in Paywhirl – for example, a coaching program limited to 5 monthly payments (no manual interaction required). Would love to be able to do that with DAP/Stripe if it’s possible at some point.

Reply
Veena Prashanth - February 7, 2016

Hi Tanya,

You cannot do limited recurring using DAP cart=>Stripe yet because Stripe does not support limited recurring.

There are some shopping cart platforms (like WooCommerce, Samcart etc) that allow limited recurring with Stripe because they store the recurring details for every customer and initiate the ‘recurring’ charge. They do NOT rely on Stripe to manage the recurring payments. This approach has pros and cons. The advantage is you can do limited recurring because you are not dependent on Stripe. But the problem is you need to have a 100% robust and dependable platform or you will end up with missing charges or double charges. You need to make sure the platform supports ‘re-bill’ and ‘re-try’ feature for failed / missed payments. It’s better to let the actual payment systems (like paypal, stripe, authnet) manage the charges than have a 3rd party system do it.

Anyway, we are considering building this feature into our new ‘power cart’ coming out in 3-4 months but we are hoping that Stripe will officially start supporting limited recurring sooner than that :).

Thanks,
Veena

Reply
Kyle K - February 28, 2016

I set everything up as explained in your post, but when I go to the DAP Cart and enter the test credit card details and submit I get this error:

ERROR: Sorry, the payment gateway = stripe is not supported

Reply
Kyle K - February 28, 2016

Currently using DAP 4.5.2

Reply
Veena Prashanth - February 29, 2016

Hi Kyle,

Looks like you are on a very old version of DAP and the DAP Cart.

Please upgrade to DAP 4.9.2 .

Upgrade DAPLiveLinks plugin to 1.12.1

Install/Upgrade DAP Shopping Cart Plugin to version 2.2 .

Then look for “DAP Shopping Cart” in http://digitalaccesspass.com/documentation/ to set up the new shopping cart.

Thanks,
Veena

Reply
Mark Mottershead - March 21, 2016

Veena

Would we need to set up a coupon code in Stripe for http://fbsharetounlock.com/ ?

Or just let it happen?

Reply
Veena Prashanth - March 21, 2016

Hi Mark,

The FBShareToUnlock will just hide the ‘coupon code name’.

The users need to enter it during checkout so yes, you need to have the same name coupon in Stripe for it to work with Stripe.

Thanks,
Veena

Reply
Mark Mottershead - March 21, 2016

Thanks Veena

What happens in the case when someone pays initially by PayPal, does it just default to a normal shopping cart?

Reply
Veena Prashanth - March 21, 2016

Sorry, not sure I follow your question. The FBShareToUnlock button is not connected to the DAP shopping cart.

Say you use a DAP Generated Paypal button to sell your products. You can hide your coupon code behind the FB sharetounlock button. Now when a buyer enters the coupon code and clicks on the “checkout with paypal” button, the coupon is applied to the purchase.

Thanks,
Veena

Reply

Leave a Reply: