Paya Payment Solutions (formerly Sage)

Required for this integration:

Supported Features 

  • API Version 1 Only 
  • Tokenization - This gateway tokenizes payment methods in a way that allows Autoship Cloud to create future orders
  • Credit Card Payments - Only credit card payments are supported with Paya Payment Solutions.

Unsupported QPilot Features

  • Manual load of payments from Square (see this help doc for details)

Setting Up the Paya for WooCommerce Plugin

Once you have installed and activated the Paya for WooCommerce plugin, you will need to enter your Paya API credentials into the plugin before you can start using it. 

To do this, navigate (in your WP Admin) to WP-Admin > Woocommerce > Settings > Payments > Paya (either at the top of the page where all the plugins are listed as text, or at the bottom where the enabled/disabled gateways are displayed). 

Once there, you will need to select "API Version 1" from the "Choose your API version" dropdown menu.

After that, you will need to fill in the following two fields with the API credentials obtained from your Paya account (also, keep these handy for the next section):

Note: You will need to supply the API keys from the Paya account that corresponds to the environment in which you will be using the gateway (we are starting in the Test Environment to ensure that the plugin is working without creating actual charges).

Finally, you will need to ensure that "Allow tokens so that customer card details can be saved" is enabled. For security, it is also a good idea to enable the "require customer to enter credit card CVV code" setting. 

Once your settings are complete, click "Save changes", and complete a checkout from your store to ensure that the plugin is setup correctly and that your integration is working.

NOTE: If you're setting up the Paya for WooCommerce plugin for the first time, you can find the full plugin documentation from the plugin author here.

Setting up Paya with Autoship Cloud

Once you have ensured that the payment gateway can successfully process a checkout and save a payment method in your store, you'll need to set create a payment integration inside of Autoship Cloud.

To do this, navigate in your WP-Admin to Autoship Cloud > Payment Integrations. Once there, select the blue circle with the "+" sign in it to create a new payment integration. You should see the following screen:

Make sure that "Test Mode" is enabled (unless you are ready to begin using the gateway in Live mode), click the "Payment Method Type" dropdown and select "Paya v1".

Next, enter the API credentials from the previous section in the appropriate fields. When you're done, select "CREATE". 

You should now see a payment integration for "Paya v1" in your Autoship Cloud > Payment Integrations list.

Testing Paya v1 with Autoship Cloud in Test Mode

Before using a payment gateway in Live Mode, it is a best practice to ensure that payments are successful in "Test Mode" (sometimes referred to as "Sandbox Mode").

To do this:

1. Visit your WooCommerce store as a customer (it's best to be logged out of the Wordpress Admin)

2. Purchase a product selected for Autoship and add it to your cart.

3. Complete a checkout with the Paya payment form, using test credit card info, and registering an account.  The "Create Password" field should be required and completed as part of the checkout.

4. Verify that the WooCommerce order has successfully created after completing checkout. 

5. As the same customer, visit My Account > Scheduled Orders, and verify that you have a Scheduled Order created, and that the scheduled products that you purchased are included and that the frequency of the Scheduled Order is correct.

6. Log back into your site's WP-Admin as an administrator, navigate to WP-Admin > Autoship Cloud > Scheduled Orders, and verify that the newly created Scheduled Order is present in your list of Scheduled Orders.

NOTE: If you did not want to put your own Paya account into test mode, you may use the test account provided by Paya with the following credentials:

  1. Testing Merchant ID Number : 778991271939
  2. Testing Merchant Key: H9U9R9H3C6D3

For more information on testing and troubleshooting Paya for WooCommerce, please refer to the plugin documentation here.

Going Live

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

To do this you will need to:

1. Create and/or Login to your Paya account

2. Navigate to WP Admin > Woocommerce > Settings > Payments > Paya, and enter your Merchant ID and Key from your Paya account, and change the setting for Environment from "Testing" to "Live". Select "Save changes" to confirm your settings.

3. Next, navigate to WP Admin > Autoship Cloud > Payment Integrations. Select the "edit" button for your "Paya v1" payment integration. Replace any test API credentials with your actual Paya Account credentials (the same as the previous step 2), and ensure the "Test Mode" option is not enabled.  Select "Save" to confirm your settings.

PRO TIP: Test Checkout and Scheduled Orders with Autoship Cloud again using an actual payment method (Credit Card) to ensure your integration is completely ready for real customer payments.

Manually Adding a Previously Saved Payment Method with Paya to a Scheduled Order

How to manually add a previously saved payment method from your Paya Vault to a new or existing Scheduled Order:

  1. Contact Paya Support to retrieve your customer's payment token aka GUID (What is a GUID?)
  2. Visit WP-Admin > Autoship Cloud > Scheduled Orders to create or edit a Scheduled Order
  3. At the bottom section of the Scheduled Order, locate the "Payment Method" option and select "Create New" 
  4. For the "Payment Method Type" option, select "Paya v1"
  5. Fill in the following fields with the information copied from your Paya Vault, starting with the GUID obtained from Paya support:
    • Scheduled Order Gateway Customer Id => Paya Vault GUID 
    • Scheduled Order Gateway Payment Id => leave this value empty
    • Scheduled Order Payment Method Description => card type, last four digits of card number of expiration copied from Payment Profile fields
    • Scheduled Order Billing Address => Customer's billing address for the payment method 
  6. Make sure to set the Scheduled Order Status to "Active" if you want it to process automatically on the Next Occurrence Date and confirm your changes by selecting "Update" 
  7. If you need to process the Scheduled Order right away, you can set its status to "Paused" or "Failed" and use the action to Activate and Process immediately.

Can I manually add a customer / GUID to my Paya Vault?

No, adding payment data is done exclusively over the API. This means a customer has to have performed a checkout and select "Save to Account" with a payment method for it to be saved with a GUID to the Paya Vault.

Still need help? Contact Us Contact Us