activemerchant_paybox_direct_plus 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -17
- data/Gemfile.lock +39 -82
- data/README.md +106 -0
- data/Rakefile +8 -52
- data/activemerchant_paybox_direct_plus.gemspec +31 -67
- data/lib/activemerchant_paybox_direct_plus.rb +54 -160
- data/test/remote/gateways/remote_paybox_direct_plus_test.rb +77 -40
- data/test/test_helper.rb +7 -196
- metadata +79 -131
- data/README.markdown +0 -45
- data/VERSION +0 -1
- data/test/fixtures.yml +0 -4
data/README.markdown
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
## Paybox Direct Plus
|
2
|
-
|
3
|
-
This is a implementation of Paybox Direct Plus for ActiveMerchant.
|
4
|
-
Paybox Direct Plus is a French payment solution allowing recurring payments, subscriptions, etc.
|
5
|
-
|
6
|
-
### Use and important information
|
7
|
-
|
8
|
-
You have to create a Paybox user profile for every user you want to charge :
|
9
|
-
|
10
|
-
response = @gateway.create_payment_profile(@amount, @credit_card, { :user_reference => "YOUR_USER_REFERENCE" })
|
11
|
-
|
12
|
-
When creating a user profile, Paybox will do an authorization on the credit card. Thefore Paybox recommends that you give the same amount than your transaction
|
13
|
-
when registering a user, so that you can do a `capture` after.
|
14
|
-
|
15
|
-
The Paybox response contains the identifier `response.params["authorization"]` that may be saved in order to void or capture the transaction.
|
16
|
-
|
17
|
-
@gateway.capture(@amount, response.params["authorization"], { :user_reference => "YOUR_USER_REFERENCE", :order_id => "ORDER_REFERENCE" })
|
18
|
-
|
19
|
-
Using the `purchase` method will do an authorization and a capture. Some banks requires some delay between 2 authorizations on the same card. So if you register
|
20
|
-
a profile then call `purchase` just after instead of `capture`, it may fail with some banks.
|
21
|
-
|
22
|
-
When registering a new user, you will get a credit card reference in the response you get from Paybox : `response.params["credit_card_reference"])`.
|
23
|
-
|
24
|
-
This is the reference you will have to add in the options when calling `purcharse` or `authorization` methods. You still have to pass a credit_card object but it will
|
25
|
-
only be used for the validation date and CVV number.
|
26
|
-
|
27
|
-
@gateway.purchase(@amount, @credit_card, { :user_reference => "YOUR_USER_REFERENCE", :order_id => "ORDER_REFERENCE", :credit_card_reference => @credit_card_reference })
|
28
|
-
|
29
|
-
### Compatibility
|
30
|
-
|
31
|
-
For Ruby 1.8, use version 0.1.0.
|
32
|
-
For Ruby 1.9 & 2.0 use latest version (>=0.2.0)
|
33
|
-
|
34
|
-
### Tests
|
35
|
-
|
36
|
-
Remote integrations tests using the Paybox tests logins and server are available and should always pass.
|
37
|
-
|
38
|
-
### Credits
|
39
|
-
|
40
|
-
The base of all this work is Donald Piret's great work on Paybox Direct Gateway implementation.
|
41
|
-
|
42
|
-
### Contact
|
43
|
-
|
44
|
-
Please don't hesitate to contact me if you have any question, any suggestion or if you found any bug.
|
45
|
-
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.0
|
data/test/fixtures.yml
DELETED