Skip to content

Instantly share code, notes, and snippets.

@allaniftrue
Last active December 20, 2016 09:21
Show Gist options
  • Save allaniftrue/8e4b1b946954cca2420e to your computer and use it in GitHub Desktop.
Save allaniftrue/8e4b1b946954cca2420e to your computer and use it in GitHub Desktop.
Using Omnipay Paypal With Laravel Views
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Laravel - Omnipay - Paypal Example</title>
</head>
<body>
{{ Form::open([ 'url' => 'pay_via_paypal', 'method' => 'post'  ]) }}
<p>
<img src="{{ $productImage }}" alt="Aurvana Platinum">
<br />
{{ $product }}
<br>
{{ $description }}
<br>
{{ $currency }} {{ $price }}
<br>
<input type="hidden" value="{{ $product }}" name="product">
<input type="hidden" value="{{ $description }}" name="description">
<input type="hidden" value="{{ $currency }}" name="currency">
<input type="hidden" value="{{ $price }}" name="price">
<button type="submit">PAY NOW!</button>
</p>
{{ Form::close() }}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment