Jump to content

Working With PayPal Masspay


Korono

Recommended Posts

Hi,  I'm working with paypal masspay.  The sample code ' have uses POST to get values from a form and then constructs a string to send through to paypal servers.  What I would like to do instead is get all the values from my database, but I'm not sure how to get my tables into arrays.

 

Here is the paypal sample loop.

 

$count= count($_POST['receiveremail']);

for($i=0,$j=0;$i<$count;$i++) {

if (isset($_POST['receiveremail'][$i]) && $_POST['receiveremail'][$i]!='' ) {

$receiverEmail = urlencode($_POST['receiveremail'][$i]);

$amount = urlencode($_POST['amount'][$i]);

$uniqueID = urlencode($_POST['uniqueID'][$i]);

$note = urlencode($_POST['note'][$i]);

$nvpstr.="&L_EMAIL$j=$receiverEmail&L_Amt$j=$amount&L_UNIQUEID$j=$uniqueID&L_NOTE$j=$note";

$j++;

}

}

 

 

All the variables that you see in the code I will either have a database column for or will be left blank.

Link to comment
https://forums.phpfreaks.com/topic/165515-working-with-paypal-masspay/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.