Skip to content

Commit

Permalink
[fix] PayPal -> pending close #166
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsbd71 committed Aug 14, 2015
1 parent ee147aa commit 2f62567
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion plugins/digicom_pay/paypal/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function onTP_GetHTML($vars)
$params = $this->params;
$secure_post = $params->get('secure_post');
$sandbox = $params->get('sandbox');
$vars->sandbox = $sandbox;
$vars->sandbox = $sandbox;
$vars->action_url = plgDigiCom_PayPaypalHelper::buildPaymentSubmitUrl($secure_post , $sandbox);

//Take this receiver email address from plugin if component not provided it
Expand Down
13 changes: 5 additions & 8 deletions plugins/digicom_pay/paypal/paypal/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,20 @@
<input type="hidden" name="custom" value="<?php echo $vars->order_id ?>" />

<input type="hidden" name="item_name" value="<?php echo $vars->item_name ?>" />
<input type="hidden" name="amount" value="<?php echo $vars->amount ?>" />
<input type="hidden" name="amount" value="<?php echo number_format( $vars->amount, 2); ?>" />

<input type="hidden" name="return" value="<?php echo $vars->url ?>" />
<input type="hidden" name="return" value="<?php echo $vars->return ?>" />
<input type="hidden" name="cancel_return" value="<?php echo $vars->cancel_return ?>" />
<input type="hidden" name="notify_url" value="<?php echo $vars->notify_url ?>" />
<input type="hidden" name="currency_code" value="<?php echo $vars->currency_code ?>" />
<input type="hidden" name="no_note" value="1" />

<!--post method-->
<input type="hidden" name="rm" value="2" />

<!--//_cart when manual calc and multiple items-->
<!--//upload=1 when manual calc and multiple items-->
<input type="hidden" name="cmd" value="_xclick" />

<div class="form-actions">
<input type="submit" class="btn btn-success btn-large" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" value="<?php echo JText::_('SUBMIT'); ?>" alt="Make payments with PayPal - it's fast, free and secure!" />
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" value="<?php echo JText::_('SUBMIT'); ?>" alt="Make payments with PayPal - it's fast, free and secure!" />
</div>

</form>
Expand Down

0 comments on commit 2f62567

Please sign in to comment.