diff --git a/README.md b/README.md index 47e726c..5a7fb02 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/composer.json b/composer.json index 0578aeb..0c7ede8 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/docs/webcheckout.md b/docs/webcheckout.md new file mode 100644 index 0000000..302a73c --- /dev/null +++ b/docs/webcheckout.md @@ -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('BuyerEmail@example.com', 'Description', 'Reference', 35000, 0, 0)->process(); + $form = new PayuLatamForm($webCheckout); + echo $form->getForm(); +```