Estimated reading: 3 minutes 673 views



This add-on adds support for points purchases via the buyCred add-on using 2checkout.


Once you have installed and enabled the plugin on your website, the 2checkout gateway will become available on the Payment Gateways page in the myCred menu. Here we need to start by entering in our 2checkout account details and save.



  1. Download the plugin.
  2. Unzip and upload the mycred-2co folder to your plugins folder.
  3. Enable the buyCred 2checkout plugin in your WordPress admin area.
  4. Visit the myCred > Payment Gateways page.
  5. Click on the “2checkout” title to show the gateway settings.
  6. Enter your account details and change your gateway settings to your liking.
  7. Save.

Setup IPN Notifications

Before you can start accepting payments, we need to setup your 2checkout IPN Notifications. These notifications are crucial in order to allow us to payout the points your users purchase, once their payment has been completed.


Once you have setup your IPN notifications you are ready to go. You can use Sandbox mode to make test transaction just remember to disable it when you are ready for real sales. Make sure you nominate 2co in your buyCred shortcodes.



  1. Access your 2checkout account
  2. Go to Account > Site Management
  3. Make sure you have your currency set to the same currency you have selected in buyCred.
  4. Under “Direct Return” select Header Redirect (Your URL) and enter the URL where you want users to be returned to on successful purchases.
  5. Setup your “Secret Word” and save.
  6. Now go to Notifications
  7. Here enter the URL buyCred gave you when you setup this gateway for “Order Created” and tick Enable.
  8. Scroll down and save.

In case “Order Created” is already used by another plugin, you can use the Override in the 2CO gateway settings in buyCred.

  1. Go to your websites admin area.
  2. Go to myCred > Payment Gateways
  3. Click on the “2CO” gateway name to expand your settings.
  4. Under “Notifications URL” you will find a checkbox with the label “Check if your Order Created Notifications URL is already being used by another plugin and you can not change it.”. Make sure it is ticked and click save.

Populating Billing Details

In order for 2Checkout to process a credit card charge, the buyer will need to provide their billing details on checkout. The gateway can help you and your users by auto populating their billing details, if these details are available on your website.


For this to work, we need to know where these details are stored on your website. In most WordPress installations this is stored as user meta fields. Alternatively if you are using BuddyPress, these details can also be stored in your users custom profile fields. For the gateway to find this information, we need to know the meta fields unique key or the BuddyPress field name (both case sensitive). When editing your gateway settings, you can select what type of field each piece of information uses and nominate the key / name the field has.


WooCommerce users can find the meta keys for billing details here.