{"id":3457,"date":"2021-03-09T21:22:20","date_gmt":"2021-03-09T21:22:20","guid":{"rendered":"https:\/\/documents.openpay.mx\/?p=3457"},"modified":"2024-03-20T15:44:32","modified_gmt":"2024-03-20T15:44:32","slug":"bank-charge","status":"publish","type":"post","link":"https:\/\/documents-mx-dev.opdevhm.com\/en\/docs\/bank-charge.html","title":{"rendered":"Banks payments"},"content":{"rendered":"
The purpouse of this guide is to explain how to generate references for bank payments step by step. With them, your customers will be able to pay transactions through a CIE Bancomer agreement number, or sending a payment through SPEI for other banks.<\/p>\n
<\/p>
<\/p>\n
This tutorial you can see steps 2 and 3, for step 6 details please check notifications section<\/a><\/p>\n In order to receive a payment through a bank you need to create a charge indicating the type of When the charge is created, a transaction object will be returned.<\/p>\n Response:<\/strong><\/p>\n Con est\u00e1 informaci\u00f3n puedes generar una ficha de dep\u00f3sito a tu cliente para que realice un pago a un servicio CIE Bancomer o mediante una transferencia interbancaria v\u00eda SPEI<\/a>.<\/p>\n For more information see the charges reference<\/a><\/p>\n It\u2019s very important that you generate a payment receipt with the following information, so that your customer can make the transfer successfully:<\/p>\n <\/p> <\/p>\n Sandbox:<\/strong> <\/span> Production<\/strong><\/span> Example:<\/p>\n https:\/\/sandbox-dashboard.openpay.mx\/spei-pdf\/mzdtln0bmtms6o3kck8f\/t6utz9dywve6zipnppys<\/p>\n Notes:<\/strong><\/span><\/em><\/span><\/p>\n The PDF of the receipt will only be available if the transaction is in pending status. Once the customer has made the payment or the transaction has been canceled the receipt will no longer be displayed.<\/span><\/em><\/p>\n El objetivo de esta gu\u00eda es explicar paso a paso como generar referencias de pago de banco, mediante las cuales tus clientes podr\u00e1n realizar transferencias bancarias a trav\u00e9s de un convenio CIE Bancomer o a trav\u00e9s de SPEI para otros bancos. Flujo para realizar cargos en banco Pasos: El cliente confirma la compra en tu… Read More »Banks payments<\/span><\/a><\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[133],"tags":[],"class_list":["post-3457","post","type-post","status-publish","format-standard","hentry","category-docs"],"yoast_head":"\nCreate a charge (Step 2)<\/h2>\n
method<\/code> el tipo
bank_account<\/code> as follows:<\/p>\n
<? <\/span>\n$openpay<\/span> =<\/span> Openpay<\/span>::<\/span>getInstance<\/span>(<\/span>'mzdtln0bmtms6o3kck8f'<\/span>,<\/span>\n 'sk_e568c42a6c384b7ab02cd47d2e407cab'<\/span>);<\/span>\n\n$chargeData<\/span> =<\/span> array<\/span><\/strong>(<\/span>\n 'method'<\/span> =><\/span> 'bank_account'<\/span>,<\/span>\n 'amount'<\/span> =><\/span> 200.00<\/span>,<\/span>\n 'description'<\/span> =><\/span> 'Cargo con banco'<\/span>,<\/span>\n 'order_id'<\/span> =><\/span> 'oid-00051'<\/span>);<\/span>\n\n$charge<\/span> =<\/span> $openpay<\/span>-><\/span>charges<\/span>-><\/span>create<\/span>(<\/span>$chargeData<\/span>);<\/span>\n?><\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n
{<\/span>\n \"id\"<\/span> :<\/span> \"t6utz9dywve6zipnppys\"<\/span>,<\/span>\n \"description\"<\/span> :<\/span> \"Cargo con banco\"<\/span>,<\/span>\n \"error_message\"<\/span> :<\/span> null<\/span><\/strong>,<\/span>\n \"authorization\"<\/span> :<\/span> null<\/span><\/strong>,<\/span>\n \"amount\"<\/span> :<\/span> 100<\/span>,<\/span>\n \"operation_type\"<\/span> :<\/span> \"in\"<\/span>,<\/span>\n \"payment_method\"<\/span> :<\/span> {<\/span>\n \"type\"<\/span> :<\/span> \"bank_transfer\"<\/span>,<\/span>\n \"bank\"<\/span> :<\/span> \"BBVA Bancomer\"<\/span>,<\/span>\n \"agreement\"<\/span> :<\/span> \"1411217\"<\/span>,<\/span>\n \"clabe\"<\/span> :<\/span> \"00000000000000000000\"<\/span>,<\/span>\n \"name\"<\/span> :<\/span> \"11094690394055678934\"<\/span>\n },<\/span>\n \"order_id\"<\/span> :<\/span> \"oid-00051\"<\/span>,<\/span>\n \"transaction_type\"<\/span> :<\/span> \"charge\"<\/span>,<\/span>\n \"creation_date\"<\/span> :<\/span> \"2013-12-05T17:50:09-06:00\"<\/span>,<\/span>\n \"currency\"<\/span> :<\/span> \"MXN\"<\/span>,<\/span>\n \"status\"<\/span> :<\/span> \"in_progress\"<\/span>,<\/span>\n \"method\"<\/span> :<\/span> \"bank_account\"<\/span>\n}<\/span><\/code><\/pre>\n<\/figure>\n
Creating a deposit slip (Step 3)<\/h2>\n
\n
\n
\n
\n
\n
\n
\n
\n
Payment instructions for Bancomer<\/h3>\n
\n
\n
Payment instructions for other banks<\/h3>\n
\n
\n
\n
Openpay generic payment slip<\/h2>\n
<\/center>Openpay offers the possibility of retrieving a generic payment slip with the necessary information so your customer can complete their bank transfer successfully. To retrieve it, you need to create an URL with the following structure:
{<\/span>DASHBOARD_PATH<\/span>}<\/span>\/spei-pdf\/<\/span>{<\/span>MERCHANT_ID<\/span>}<\/span>\/<\/span>{<\/span>TRANSACTION_ID<\/span>}<\/span><\/code><\/pre>\n<\/figure>\n
{DASHBOARD_PATH}<\/code> = https:\/\/sandbox-dashboard.openpay.mx<\/span><\/em><\/p>\n
{DASHBOARD_PATH}<\/code> = https:\/\/dashboard.openpay.mx<\/span><\/em><\/p>\n
{MERCHANT_ID}<\/code> = your merchant id<\/p>\n
{TRANSACTION_ID}<\/code> = field value
id<\/code> of the transaction object returned when the charge was created<\/p>\n
<\/strong><\/span><\/em><\/span><\/p>\n