paymentsuite / dineromail-bundle
Dineromail PaymentSuite Component
Installs: 209
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 2
Type:symfony-bundle
Requires
- php: >=5.3.3
- paymentsuite/payment-core-bundle: ~1.1
- symfony/config: >=2.2.3
- symfony/dependency-injection: >=2.2.3
- symfony/event-dispatcher: >=2.2.3
- symfony/form: >=2.2.3
- symfony/framework-bundle: >=2.2.3
- symfony/http-kernel: >=2.2.3
- twig/twig: ~1.11
This package is auto-updated.
Last update: 2022-02-01 12:32:17 UTC
README
Table of contents
Configuration
Configure the DineroMail configuration in your config.yml
dineromail:
# some specific payment config
merchant: XXXXXXXXXX
ipn_key: XXXXXXXXXX
country: 1 # 1 => Argentina, 3 => Chile
seller_name: MyProject
header_image: http://my.image/path.jpg
url_redirect_enabled: true
# payment methods
payment_methods_available:
- cl_visa
- cl_magna
- cl_presto
# By default, controller route is /payment/dineromail/execute
controller_route: /my/custom/route
# Controller process route, by default /payment/dineromail/process/{id_order}
controller_process_route: /my/process/route/{id_order}
# Configuration for payment success redirection
#
# Route defines which route will redirect if payment successes
# If order_append is true, Bundle will append card identifier into route
# taking order_append_field value as parameter name and
# PaymentOrderWrapper->getOrderId() value
payment_success:
route: card_thanks
order_append: true
order_append_field: order_id
# Configuration for payment fail redirection
#
# Route defines which route will redirect if payment fails
# If card_append is true, Bundle will append card identifier into route
# taking card_append_field value as parameter name and
# PaymentCardWrapper->getCardId() value
payment_fail:
route: card_view
card_append: false
card_append_field: card_id
Extra Data
PaymentBridge Service must return, at least, these fields.
- customer_firstname
- customer_lastname
- customer_email
- customer_phone
- language
Router
DineroMail allows developer to specify the route of controller where dineromail payment is processed. Also POST callback route is configured through configuration specification.
The bundle routes must be parsed by the framework, so these lines must be included into routing.yml file
dineromail_payment_routes:
resource: .
type: dineromail
DineroMail payment button must point to route dineromail_execute
without any parameter