@@ -9,109 +9,11 @@ Authorize.Net (AIM) - Payment Suite
9
9
[ ![ Total Downloads] ( https://poser.pugx.org/paymentsuite/authorizenet-bundle/downloads.png )] ( https://packagist.org/packages/paymentsuite/authorizenet-bundle )
10
10
11
11
This bundle bring you a possibility to make simple payments through
12
- [ Authorize.Net] ( http://www.authorize.net/ ) using the
13
- [ PaymentSuite] ( https://github.com/PaymentSuite/PaymentCoreBundle ) for Symfony2.
12
+ [ Authorize.Net] ( http://www.authorize.net/ ) . AuthorizenetBundle is payment method for Symfony2
13
+ Payment Suite and it's built following
14
+ [ PaymentCore] ( http://docs.paymentsuite.org/en/latest/index.html ) documentation.
15
+ PaymentCore brings for developers easy way to implement several payment methods.
14
16
15
- Table of contents
16
- -----
17
17
18
- 1 . [ Configure Payment Environment] ( https://github.com/PaymentSuite/PaymentCoreBundle/wiki/Configure-Payment-Environment )
19
- 1 . [ Configure AuthorizenetBundle] ( #https://github.com/PaymentSuite/PaymentCoreBundle/wiki/Installing-Payment-Platforms )
20
- 1 . [ Contribute] ( https://github.com/PaymentSuite/PaymentCoreBundle/wiki/Contribute )
21
- 1 . [ Configuration] ( #configuration )
22
- 1 . [ Router] ( #router )
23
- 1 . [ Display] ( #display )
24
- 1 . [ Customize] ( #customize )
25
- 1 . [ Testing and more documentation] ( #testing-and-more-documentation )
26
-
27
- Configuration
28
- -----
29
-
30
- Configure the AuthorizenetBundle parameters in your ` config.yml ` .
31
-
32
- ``` yaml
33
- authorizenet :
34
-
35
- # authorizenet keys
36
- login_id : XXXXXXXXXXXX
37
- tran_key : XXXXXXXXXXXX
38
- test_mode : true
39
-
40
- # By default, controller route is /payment/authorizenet/execute
41
- controller_route : /my/custom/route
42
-
43
- # Configuration for payment success redirection
44
- #
45
- # Route defines which route will redirect if payment success
46
- # If order_append is true, Bundle will append cart identifier into route
47
- # taking order_append_field value as parameter name and
48
- # PaymentOrderWrapper->getOrderId() value
49
- payment_success :
50
- route : cart_thanks
51
- order_append : true
52
- order_append_field : order_id
53
-
54
- # Configuration for payment fail redirection
55
- #
56
- # Route defines which route will redirect if payment fails
57
- # If cart_append is true, Bundle will append cart identifier into route
58
- # taking cart_append_field value as parameter name and
59
- # PaymentCartWrapper->getCartId() value
60
- payment_fail :
61
- route : cart_view
62
- cart_append : false
63
- cart_append_field : cart_id
64
- ` ` `
65
-
66
- About Authorizenet ` login_id` and `tran_key` you can learn more in
67
- [Authorizenet documentation page](http://support.authorize.net/authkb/index?page=content&id=A576&actp=LIST_POPULAR).
68
-
69
- Router
70
- -----
71
-
72
- AuthorizenetBundle allows developer to specify the route of controller where
73
- authorizenet payment is processed.
74
- By default, this value is `/payment/authorizenet/execute` but this value can be
75
- changed in configuration file.
76
- Anyway AuthorizenetBundle's routes must be parsed by the framework, so these
77
- lines must be included into `routing.yml` file.
78
-
79
- ` ` ` yaml
80
- authorizenet_payment_routes:
81
- resource: .
82
- type: authorizenet
83
- ` ` `
84
-
85
- Display
86
- -----
87
-
88
- Once your AuthorizenetBundle is installed and well configured, you need to place
89
- your payment form.
90
-
91
- AuthorizenetBundle gives you all form view as requested by the payment module.
92
-
93
- ` ` ` jinja
94
- {% block content %}
95
- <div class="payment-wrapper">
96
- {{ authorizenet_render() }}
97
- </div>
98
- {% endblock content %}
99
- ` ` `
100
-
101
-
102
- Customize
103
- -----
104
-
105
- ` authorizenet_render()` just print a basic form.
106
-
107
- As every project need its own form design, you can overwrite default form
108
- located in : ` app/Resources/AuthorizenetBundle/views/Authorizenet/view.html.twig` .
109
-
110
-
111
- Testing and more documentation
112
- -----
113
-
114
- For testing you can use these example
115
- [these examples](http://developer.authorize.net/testingfaqs/).
116
- More detail about Authorizenet API you can find in this
117
- [web](http://developer.authorize.net/).
18
+ * [ Documentation about AuthorizenetBundle] ( http://docs.paymentsuite.org/en/latest/available_platforms.html#authorizenetbundle )
19
+ * [ Contribute] ( http://docs.paymentsuite.org/en/latest/contribute.html )
0 commit comments