Skip to content

Instantly share code, notes, and snippets.

@jonathanjd
Last active February 3, 2018 03:31
Show Gist options
  • Select an option

  • Save jonathanjd/1ef584834f04331f62550f9454d53dab to your computer and use it in GitHub Desktop.

Select an option

Save jonathanjd/1ef584834f04331f62550f9454d53dab to your computer and use it in GitHub Desktop.
Confirmar Pago con Paypal
public function studentPlanPaymentStore(Request $request)
{
# code...
$payment = PaypalPayment::getById($request->paymentId, PaypalPayment::apiContext());
$execution = PaypalPayment::PaymentExecution()->setPayerId($request->PayerID);
$payment = $payment->execute($execution, PaypalPayment::apiContext());
dd($payment);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment