https://github.com/kinduff/spree_openpay
https://github.com/kinduff/spree_openpay
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kinduff/spree_openpay
- Owner: kinduff
- License: bsd-3-clause
- Created: 2018-04-16T22:50:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T19:10:28.000Z (about 8 years ago)
- Last Synced: 2025-02-22T21:43:40.118Z (over 1 year ago)
- Language: Ruby
- Size: 94.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Spree Openpay
==============
Add spree_openpay to your Gemfile:
```ruby
gem 'spree_openpay', github: 'elliotmx/spree_openpay_full', branch: 'master'
```
Then run:
```shell
bundle
bundle exec rails g spree_openpay:install
```
##Setup Openpay Payments
You need to go to [Openpay](https://www.openpay.mx/), create an account and retrieve your ID, private and public api keys.
On the spree application admin side go to:
/admin/payment_methods/new
In the provider box,choose one of the following options depending on your needs:
Spree::BillingIntegration::OpenpayGateway::Card
Spree::BillingIntegration::OpenpayGateway::Cash
On the auth token field, add your Openpay private key.
On the public auth token field, add your Openpay public private key. (Openpay Card Only)
On the openpay field, add your Openpay Merchant ID.
**Important Note:** If the payment method's test mode is active, then you will be using the sandbox testing URL for Openpay.
###Source Methods
Spree Openpay currently supports four different methods:
####Card
>Card method will let you pay using your credit or debit card. More info: More info: [Openpay Card](https://www.openpay.mx/docs/save-card.html)
**Important Note:** At least you need to create this payment method.
####Cash
>Cash method will generate a bar code with the order information so you'll be able to take it to your nearest Paynet store to pay it. More info: [Openpay Cash](https://www.openpay.mx/docs/store-charge.html)
####Bank
>Bank method will let you generate a deposit or transfer reference.
####Monthly Payment
>This method will let you pay using your credit card with a monthly payment schema.
**Important Note:** If you want to support all source methods, you'll need to create a payment method for each one.
**Important Note:** This extension only works with ruby 2.0+.
**Important Note:** Openpay only supports Credit Cards and Cash Payments.
**Important Note:** Openpay customers will be created after the first checkout's step.
**Important Note:** Only Openpay total refunds available.
# About the Author
[ELLIOT](http://elliot.mx/)
## Contributors
* * Raul Contreras Arredondo
* * AngelChaos26