Skip to content
Browse files

Issue #7 by gsathe: Ability to add shipping amount if supplied in pos…

…t data

Signed-off-by: Gautam Sathe <gautam@hemisphereinteractive.com>
  • Loading branch information...
1 parent bfd06c5 commit 985870eb68ac63f90e8781c8db9cfaafe9594de3 @matuag committed May 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 extensions/net/http/RPProfileService.php
View
2 extensions/net/http/RPProfileService.php
@@ -60,6 +60,7 @@ public function createRPProfile($postData) {
$state = urlencode($postData['state']);
$zip = urlencode($postData['zip']);
$amount = urlencode($postData['amount']);
+ $shippingAmt = isset($postData['shippingAmt']) ? urlencode($postData['shippingAmt']) : urlencode('0.00');
$currencyCode = $this->_config['currencyCode'];
$profileDesc = urlencode($postData['profileDesc']);
@@ -82,6 +83,7 @@ public function createRPProfile($postData) {
// The variable $nvpstr contains all the variables and is a
// name value pair string with & as a delimiter
$nvpstr = '&AMT=' . $amount;
+ $nvpstr .= '&SHIPPINGAMT=' . $shippingAmt;
$nvpstr .= '&CREDITCARDTYPE=' . $creditCardType;
$nvpstr .= '&ACCT=' . $creditCardNumber;
$nvpstr .= '&EXPDATE=' . $padDateMonth . $expDateYear;

0 comments on commit 985870e

Please sign in to comment.
Something went wrong with that request. Please try again.