From 19a2f4bff8633b6b90239da7ea403975e5eeda6d Mon Sep 17 00:00:00 2001 From: Jose Luis Fonseca Date: Tue, 25 Aug 2015 08:33:26 -0500 Subject: [PATCH] Update Composer Some docs too --- README.md | 2 -- composer.json | 1 - docs/webcheckout.md | 23 +++++++++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 docs/webcheckout.md 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(); +```