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
PaymentBridge Service must return, at least, these fields.
- customer_firstname
- customer_lastname
- customer_email
- customer_phone
- language
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