roldahayes Posted June 21, 2010 Share Posted June 21, 2010 Hi, I have a client admin system where I can request payment from them. At the moment, it works via paypal. but I really need it to work with an EPDQ account. I've set up EPDQ pages before but always when 1 price was needed, this system needs to have different prices per client. <?php //Configure Payments $payPrice = $price / $payConfig; ?> <h1>Pay Safely with PayPal</h1> <p>Make sure the details below are correct and click the "Pay with PayPal" button. You will then be redirected to PayPal's secure site to make your transaction.</p> <p>Payment Amount: <?php if($paymentsMade == $payConfig){echo "There are no more payments to be made.";}else{echo "$".$payPrice.".00";}?></p> <p>Payments Made: <?php echo $paymentsMade;?> of <?php echo $payConfig;?></p> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <!-- Identify your business so that you can collect the payments. --> <input class="hidden" type="hidden" name="business" value="<?php echo $businessEmail;?>" /> <input class="hidden" type="hidden" name="cmd" value="_xclick" /> <!-- Specify details about the item that buyers will purchase. --> <input class="hidden" type="hidden" name="item_name" value="<?php echo $itemName;?>" /> <input class="hidden" type="hidden" name="item_number" value="1" /> <input class="hidden" type="hidden" name="amount" value="<?php echo $payPrice;?>" /> <input class="hidden" type="hidden" name="currency_code" value="<?php echo $currency;?>" /> <input class="hidden" type="hidden" name="no_shipping" value="0" /> <!-- Display the payment button. --> <input <?php if($paymentsMade >= $payConfig){echo "disabled='true'";}?> type="submit" value="<?php if($paymentsMade >= $payConfig){ echo "Payments Complete";}else{ echo "Pay with PayPal";} ?>" /> <input class="hidden" type="hidden" name="return" value="index2.php?page=payment-complete" /> </form> Link to comment https://forums.phpfreaks.com/topic/205470-can-anyone-help-with-converting-this-to-epdq-format-please/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.