Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue31 add README.md file #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions paypal_sdk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Drupal Paypal Recurring Payment


## Installation

First you need to [install composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)



1) Add dependency to composer.json file.
```
"capynet/DrupalPayPalRecurrringPayment": {
"type": "package",
"package": {
"name": "capynet/DrupalPayPalRecurrringPayment",
"version": "dev-1.x",
"type": "drupal-module",
"source": {
"url": "https://github.com/capynet/DrupalPayPalRecurrringPayment.git",
"type": "git",
"reference": "master"
}
}
}
```
2) Once the module is installed DrupalPayPalRecurrringPayment dependency will need to be installed.

cd paypal_sdk
composer install


After execute **composer install** paypal/rest-api-sdk-php will be added to vendor folder.


### Notes

####Taxes
The tax is being hardcoded and it seems it is not being used. We still need to improve the code.

```
$chargeModel->setType('TAX')
->setAmount(new Currency(array(
'value' => $data['payment_amount'] * .21,
'currency' => $data['payment_currency']
)));
```