Whenever I create a button with a fixed amount using this code

<?php
print lm_paypal_donate(10, array('currency_code' => 'USD', 'text' => 'donation to example.com')) .'<br>';
?>

The price doesn't show in Paypal. It asks the user to enter an amount. Please see image.

paypal

CommentFileSizeAuthor
paypald.png2.09 KBfehin

Comments

L-four’s picture

I have fixed this locally and will commit it shortly you can fix this now by adding display_amount => TRUE e.g.

<?php
print lm_paypal_donate(10, array('currency_code' => 'USD', 'text' => 'donation to example.com', 'display_amount' => TRUE)) .'<br>';
?>
L-four’s picture

Status: Active » Fixed
fehin’s picture

Thank you. It worked.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.