Think I figured this out.
Two things need to be in place to switch between PayPal Sandbox (test) and PayPal live:
- PayPal settings need to be correct for the PayPal version used
- PalPal settings need to be set for the proper payment cart (store purchases vs memberships)
1. PayPal settings need to be correct for the PayPal version used
a. PayPal settings used for PayPal Sandbox:
Active: checked
Mode: test
Business: <PayPal account email address>
Process type: IPN
Connection type: HTML
Identity token:
Sandbox: <PayPal Sandbox account email address>
Data return URL: http://yoursite.com/m/payment/act_finalize_checkout/paypal/1
b. PayPal settings used for PayPal live
Active: checked
Mode: live
Business: <PayPal account email address>
Process type: IPN
Connection type: HTML
Identity token:
Sandbox:
Data return URL: http://yoursite.com/m/payment/act_finalize_checkout/paypal/1
Note: these settings worked for me, they may not work for you.
2. PalPal settings need to be set for the proper payment cart
This is the tricky part, haven't seen it spelled out anywhere, at least not clearly, and it makes all the difference.
There are two types of carts in Dolphin - one for memberships, one for store products. From what I can tell, there is only one membership cart sitewide. Data return URL for the membership cart in Payment Settings (above) ends with /m/payment/act_finalize_checkout/paypal/0.
There can be many store carts, one for each user, if each user wants to create a store. The Data return URL in Settings for store carts ends with /m/payment/act_finalize_checkout/paypal/1 where the number after final slash /n (e.g., /1 /2, /323) corresponds to the User ID of the store owner.
If there is only one store for the entire site, the Data return URL value should normally be /m/payment/act_finalize_checkout/paypal/1 unless this has been changed.
What's critical is where the Payment Settings for each cart are found for modification.
- For the membership cart, payment settings are found in Admin -> Modules -> Payment -> Payment Details -> PayPal (see first attached image)
- For each store cart, payment settings are found in Profile -> Payments -> Payment Details -> Settings -> PayPal (see second attached image)
My biggest problems working with this was
- not understanding there were two different types of carts, and
- not knowing payment settings for store carts are modified on the profile of the admin user.
Modifying payment settings via the admin panel only applies to the membership cart.
In my opinion, and not wanting to take an unfair shot at Boonex, the design of this module and its documentation/communication leaves much to be desired. No reason to spend hours trying to figure out something as essential as this. Good design & documentation makes for more productive develioers & happier customers.