Dynadot โ€” .com Registration $8.99

PHP payment via LibertyReserve - help

Spaceship Spaceship
Watch

GambleMan

Established Member
Impact
0
Hello,

Who could help me?

I use LR payment via API.

I have changed php code "Server Mass Payment Tool (PHP)".
and my code is working but can make payment to one account only.

I need that pay to 2-3 account instantly.

Working code:
PHP:
$transferList = $lr_paidby.", ".$amount.", not-private, MEMO";

        $request = new TransferRequest($apiName, $securityWord);
        $request->addTransfersFromText($payerAcct, $transferList, $transferListError);

        $transferListError = str_replace("\n","<br />", $transferListError);
        if ($transferListError != "") {
                $mess=$transferListError;
                                    }
    
    $responseContent = $request->getResponse();

How need fill $transferList for pay to 2-3 account instantly?

I try:
PHP:
 $transferList = $lr_paidby1.", ".$amount1.", not-private, MEMO1"."\n".
 $lr_paidby2.", ".$amount2.", not-private, MEMO2";
but don't work...

Need help.

Thanks!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
I've never used that class myself but I would have thought it would be more like:
PHP:
$transferList = $lr_paidby.", ".$amount.", not-private, MEMO";
$transferList2 = $lr_paidby.", ".$amount.", not-private, MEMO";
$transferList3 = $lr_paidby.", ".$amount.", not-private, MEMO";
        $request = new TransferRequest($apiName, $securityWord);
        $request->addTransfersFromText($payerAcct, $transferList, $transferListError);
        $request->addTransfersFromText($payerAcct, $transferList2, $transferListError);
        $request->addTransfersFromText($payerAcct, $transferList3, $transferListError);
 
0
•••
With beaver6813's code, you may need to modify the variables used such as $playerAcct is signed to one account, you'd need to modify it after the 1st request, or create $playerAcct2 and set this with the 2nd accounts details.

Im not familiar with the API myself, but i'd imagine playerAcct holds account information? If you want to pay into 3 different accounts, the inner details would be different, similar with paidby etc.
 
0
•••
Thanks, beaver6813!
I try it. It working.
Thanks.
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back