CartThrob 2 PayPoint.net (Secpay) payment gateway

Current version: 0.4. Released: 2011-08-11

This add-on allows you to take payments with PayPoint's Lite and Professional gateways.

Latest

Tested by a few people now, but still tread with care.

Please note this plugin requires CartThrob 2.0503

Contents

Download

ct_paypoint_0.4.zip

Changes in v0.4

Read full changelog

Installation & Configuration

System requirements

Tested with:

Installing

  1. Download and extract the zip archive
  2. Place the file Cartthrob_paypoint_secpay.php in your cartthrob/payment_gateways folder
  3. Place the file cartthrob_paypoint_secpay_lang.php in your cartthrob/language/english folder. Feel free to translate and send back to me.
  4. Make a Response template (see example code below).

Configuring within CartThrob

  1. Login to EE and go to your CartThrob control panel
  2. Click the Payments tab
  3. Select PayPoint.net (Secpay) from Choose your primary payment gateway
  4. Enter your Merchant ID
  5. Enter your digest password
  6. Select a Transaction Mode. This will need to be Live to take actual orders.
  7. Enter your currency code
  8. If you have a pro account, enter the name of your Payment template
  9. Select your Response template
  10. Specify if PayPoint should send it's own customer notification emails with Send Paypoint customer email
  11. Specify if PayPoint should send it's own vendor notification emails with Send Paypoint admin email
  12. Specify if cart contents should be sent to PayPoint with Send order items
  13. Now configure your shop and templates as per standard CartThrob instructions

Checkout form field names

The checkout form field names for CartThrob and PayPoint differ, but (from the point of view of this plugin) you can use either. It's probably best to use the CartThrob names however to maximise compatibility.

Please note that if you submit a PayPoint field name to the checkout, it will overwrite the CartThrob equivalent. The table below contains a full list of supported field names.

PayPoint field name CartThrob field name Notes
bill_addr_1 address  
bill_addr_2 address2  
bill_city city  
bill_company company  
bill_country country  
bill_email email_address  
bill_fax n/a  
bill_name n/a If not provided, will be automatically generated from first and last name
bill_post_code zip  
bill_state state  
bill_tel phone  
bill_url n/a  
n/a last_name  
ship_addr_1 shipping_address  
ship_addr_2 shipping_address2  
ship_city shipping_city  
ship_company shipping_company  
ship_country shipping_country  
ship_email n/a  
ship_fax n/a  
ship_name n/a If not provided, will be automatically generated from first and last name
ship_post_code shipping_zip  
ship_state shipping_state  
ship_tel n/a  
ship_url n/a  
n/a shipping_last_name  

Response template

This is a sample template. Available available variables are:

{if authorized}...{/if}
{if not_authorized}...{/if}
{order_id}
{error_message}

Roadmap

Support

Please add to the CartThrob forum post