Skip to content

Commit

Permalink
variablise currency & URLs elplatt#253
Browse files Browse the repository at this point in the history
variablise currency & URLs elplatt#253
  • Loading branch information
chris18890 committed May 8, 2014
1 parent f05e33a commit 75baf96
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crm/modules/paypal_payment/expresscheckout.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

global $crm_root;
// Bootstrap the site
require_once($crm_root . '/include/crm.inc.php');
require_once ("paypalfunctions.php");
// ==================================
// PayPal Express Checkout Module
Expand All @@ -17,7 +20,7 @@
//' The currencyCodeType and paymentType
//' are set to the selections made on the Integration Assistant
//'------------------------------------
$currencyCodeType = "GBP";
$currencyCodeType = $config_currency_code;
$paymentType = "Sale";

//'------------------------------------
Expand All @@ -26,15 +29,15 @@
//'
//' This is set to the value entered on the Integration Assistant
//'------------------------------------
$returnURL = "https://tony314/crm/index.php?q=contact&cid=5&tab=account";
$returnURL = 'http://' . $config_host . crm_url('contact', array('query'=>array('cid'=>$cid, 'tab'=>'account')));

//'------------------------------------
//' The cancelURL is the location buyers are sent to when they hit the
//' cancel button during authorization of payment during the PayPal flow
//'
//' This is set to the value entered on the Integration Assistant
//'------------------------------------
$cancelURL = "https://tony314/crm/index.php?q=contact&cid=5&tab=account";
$cancelURL = 'http://' . $config_host . crm_url('contact', array('query'=>array('cid'=>$cid, 'tab'=>'account')));

//'------------------------------------
//' Calls the SetExpressCheckout API call
Expand Down

0 comments on commit 75baf96

Please sign in to comment.