You are here

function _commerce_worldpay_bg_md5_signature_fields in Commerce Worldpay 7

Utility function holding Worldpay MAC sig codes.

Defines what post fields should be used in the Worldpay MD5 signature.

@todo Decide if this is worth making configurable.

Return value

array An array consisting of the name of fields that will be use.

See also

http://www.worldpay.com/support/kb/bg/htmlredirect/rhtml5802.html

3 calls to _commerce_worldpay_bg_md5_signature_fields()
commerce_worldpay_bg_order_form in ./commerce_worldpay_bg.module
Build the form to be submitted to WorldPay.
commerce_worldpay_bg_response_page in includes/commerce_worldpay_bg.page.inc
Page callback that listens for transaction information from WorldPay.
commerce_worldpay_bg_settings_form in ./commerce_worldpay_bg.module
Settings form for Worldpay payment method.

File

./commerce_worldpay_bg.module, line 30
Provides a Worldpay Business Gateway payment method for Drupal Commerce.

Code

function _commerce_worldpay_bg_md5_signature_fields() {
  return array(
    'instId',
    'amount',
    'currency',
    'cartId',
    'MC_orderId',
    C_WORLDPAY_BG_RESPONSE_URL_TOKEN,
  );
}