There are three ways to integrate with Commonwealth bank:
-
Hosted Checkout,
-
Hosted Session - not supported by CourseSales.com (ask for a software change quote if this is required)
-
Direct Payment - not supported by CourseSales.com
-
Batch Payment - not supported by CourseSales.com
Read more about these CBA Guidelines.
It is important that you test your integration before going live. To access the CommWeb payment gateway test simulator, type “TEST” as a prefix to the Merchant ID supplied by your payment service provider.
You need a Merchant ID to be able to set up this configuration, use the sample code supplied by the Commonwealth bank. Add this code to Online Code section within the payment method. Field mapping from CourseSales.com variables to those within the code are as follows:
-
merchant: ‘<your_merchant_id>’ = Your id eg: ASD6876876 (no shortcode variable available)
-
currency: ‘USD’ = [Currencies:CurrencyCode]
-
description: ‘Ordered goods’ = [CourseDates:CourseMasterDisplayCategoryName]
-
id: ‘<unique_order_id>’ = [Documents:DocumentExternalId]
-
name: ‘Your merchant name’ = Your Company Name
-
line1: ‘200 Sample St’, = Your company address first line (no shortcode variable available)
-
line2: ‘1234 Example Town’ = Your compnay address second line (no shortcode variable available)