ExecutePayment Method
Runs a payment that was previously created.
Object Oriented Interface
public function doExecutePayment($paymentkey);
Procedural Interface
inpaypal_adaptivepay_do_executepayment($res, $paymentkey);
Remarks
This method runs a payment that was previously created using the CreatePayment method. Creating and later executing payments is useful, because after creating a payment with the CreatePayment method, you can use the SetPaymentOptions method to modify any payment settings you wish to change before actually running the transaction. After everything is set up, pass the PaymentKey to the ExecutePayment method to fulfill the transaction.
If you do not need to change any payment settings, simply call the Pay method instead of using CreatePayment and ExecutePayment.