Skip to content

Commit

Permalink
Update Composer
Browse files Browse the repository at this point in the history
Some docs too
  • Loading branch information
joselfonseca committed Aug 25, 2015
1 parent f171529 commit 19a2f4b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# PayuLatam for Laravel



## Introduction

Documentation for PayuLatam provides an expressive, fluent interface to [PayuLatam](https://secure.payulatam.com/online_account/507740/create_account.html) subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle coupons, swapping subscription, subscription "quantities", cancellation grace periods, and even generate invoice PDFs.
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "anvarco/payulatam",
"description": "Payulatam form laravel provides an expressive, fluent interface to PayuLatam subscription billing services.",
"version": "0.0.3-dev",
"type": "project",
"require": {
"php": ">=5.5.9"
Expand Down
23 changes: 23 additions & 0 deletions docs/webcheckout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Web Checkout Class

This class will alow you to generate the signature and will hold all the informtion needed to build a form for the web checkout endpoint in PayU Latam.

## Example

```php
use AnvarCO\PayuLatam\Form\Builder as PayuLatamForm;

$webCheckout = app('WebCheckoutData');
/**
* @param $buyerEmail
* @param $description
* @param $referenceCode
* @param $amount
* @param int $tax
* @param int $taxReturnBase
* @return $this
*/
$webCheckout->init('[email protected]', 'Description', 'Reference', 35000, 0, 0)->process();
$form = new PayuLatamForm($webCheckout);
echo $form->getForm();
```

0 comments on commit 19a2f4b

Please sign in to comment.