Closed (fixed)
Project:
Pay
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 03:21 UTC
Updated:
5 Mar 2012 at 03:53 UTC
Jump to comment: Most recent file
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?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | pay screen.JPG | 107.73 KB | andrewm63au |
Comments
Comment #1
allie mickaThe 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:
Comment #2
andrewm63au commentedWhere 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?
Comment #3
andrewm63au commentedThis 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');
}
Comment #4
andrewm63au commentedI 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
Comment #5
andrewm63au commentedThanks for your help Allie
Comment #5.0
andrewm63au commentedAdded another question