Braintree Payments

Required for this integration:

Supported Features

  • Credit Card powered by Braintree: This plugin tokenizes payments in a way that allows Autoship Cloud to work with saved Credit Cards as payment methods for future & recurring orders.
  • PayPal Powered by Braintree: This plugin tokenizes payments in a way that allows Autoship Cloud to work with saving PayPal as a payment method for future & recurring orders.

Unsupported Features

  • "Buy Now on Product Pages": this setting bypasses the ability to add a product to the cart with Autoship Options selected.
  • "Apple Pay" as a saved payment method has not been tested to work as a saved payment method for Scheduled Orders.

Setting up Braintree payments with WooCommerce

Once you have installed and activated the Braintree Payments plugin, you will need to enter your Braintree Sandbox API credentials into the plugin before you can start using it. 

To do this, navigate (in your WordPress Admin) to WP-Admin > WooCommerce > Settings >> Payments (tab) and then select the Braintree (Credit Card) option.

Once there, select "Enter Connection Credentials Manually", and fill in the Sandbox Private Key/Public Key/Merchant ID fields with the values provided by your Braintree Sandbox account. 

You will also need to ensure that "Allow customers to securely save their payment details for future checkout" is enabled under "Tokenization, as this is required for Autoship Cloud to create future orders.

Once these have been set, click "Save changes", and complete a checkout from your store to ensure that Braintree is working.

Enabling PayPal Payments

Navigate (in your WordPress Admin) to   WP-Admin > WooCommerce > Settings >> Payments (tab) and then select the Braintree (PayPal) option.

Once there, select "Enter Connection Credentials Manually", and check "Use connection/authentication settings from other gateway".

You will also need to ensure that Tokenization is enabled for this gateway.

Once these have been set, select "Save changes", and test by completing a checkout from your store (as a customer) to ensure that Braintree PayPal Payments is working.

Setting up Braintree Payments with Autoship Cloud

Once you have ensured that the payment gateway can successfully process an order created via checkout and save a payment method in your store, you will need to add the payment integration to Autoship Cloud.

To do this, navigate in your WordPress Admin to WP-Admin > Autoship Cloud > Payment Integrations. Once there, select the add button (blue circle with the "+" sign in it) to add a new payment integration.

Select the "Payment Method Type" dropdown and then select "Braintree". To add Sandbox settings, make sure that "Test Mode" is enabled.

Enter the same API credentials that you added to your WooCommerce Settings into the appropriate fields.

When you're done, select "CREATE". 
You should now see a new payment integration in your Payment Integrations list!

Testing Braintree Payments with Autoship Cloud in "Test Mode"

Before using a payment gateway in Live Mode, it is necessary to ensure that your integration works in "Test Mode" (sometimes referred to as "Sandbox Mode").

1. Visit your store as a customer (make sure you are logged out as WP Admin)

2. Add a product selected for Autoship to your cart.

3. Complete a checkout using Braintree Credit Card Payments as the payment method, using sandbox credit card info, and filling in the "Create Password" field (this should be required).

4. Verify that the order has successfully processed. 

5. As the same customer, visit My Account > Scheduled Orders, and verify that you have a Scheduled Order created and that the product(s), schedule frequency, and payment method are correct.

6. Log back into your site as a WordPress Admin (WP-Admin), navigate to WP-Admin > Autoship Cloud > Scheduled Orders, and verify that the newly created Scheduled Order is present.

7. Repeat steps 2 - 6 using Braintree PayPal as the payment method.

Going Live

Once you have successfully completed a WooCommerce checkout and verified that a Scheduled Order was created with a saved test payment method, you are ready to enter "Live Mode" (in which actual charges will be created). 

1. First, ensure that you are using "Live" settings and not "Test" or "Sandbox" settings from your Braintree Merchant account.

2. Navigate to WP-Admin > WooCommerce > Settings >> Payments (tab) >>> Braintree (Credit Card) and change the "Environment" setting to "Production". Enter the API credentials from your Live Braintree account.

3. Navigate to WP-Admin > WooCommerce > Settings >> Payments (tab) >>> Braintree (PayPal), and change the "Environment" setting to "Production". Enter the API credentials from your Live Braintree PayPal account.

3. Navigate to WP-Admin > Autoship Cloud > Payment Integrations. Select the "edit" button (pencil icon) at the right end of the record for your Braintree integration. Disable the option for "Test Mode", and select "Save".

You are now ready to test  Checkout and Scheduled Orders with Autoship Cloud.

Still need help? Contact Us Contact Us