I'm trying to establish a payment gateway to Secure Pay. At this stage they aren't getting the transaction to their system. Can someone tell me what I need to do to get WebformPay, Pay and SecurePay modules sending the payment through. In the Payment Settings Overview screen it asks for a currency, however the dropdown box is empty. How do I get a currency into it?
Also, how do I add other information to be sent to SecurePay like a reference number etc?

CommentFileSizeAuthor
#2 pay screen.JPG107.73 KBandrewm63au

Comments

allie micka’s picture

The currencies listed on this page are a superset of the currencies that are supported by the installed payment handlers. If you have a payment method module installed (e.g. SecurePay), then that module is responsible for implementing a function that looks something like this:

  /**
   * List of currencies that SecurePay supports.
   */
  function available_currencies() {
    return array('USD');
  }
andrewm63au’s picture

StatusFileSize
new107.73 KB

Where is that function found?
Do I need to manually add the currencies in the array?

I also want to remove some custom payment methods that I created, how can this be done?

andrewm63au’s picture

This is what I've found in the pay_method_gateway_securepayau.inc file

// this variable could be replaced when currency support in included in pay
// http://drupal.org/node/932666
var $currency = 'AUD';

Should this be replaced with the function
/**
* List of currencies that SecurePay supports.
*/
function available_currencies() {
return array('USD');
}

andrewm63au’s picture

I added
/**
* List of currencies that Securepay supports.
*/
function available_currencies() {
return array('AUD');
}

to the pay_method_gateway_securepayau.inc file and I now get AUD as an availabe currency

andrewm63au’s picture

Status: Active » Closed (fixed)

Thanks for your help Allie

andrewm63au’s picture

Issue summary: View changes

Added another question