
Add Braspag payment to your WooCommerce e-commerce!
Add Braspag gateway to WooCommerce.
Braspag is a Brazilian payment gateway.
Development
This plugin was developer using the official docs of gateway, without any support.
None of developers have link with Braspag or WooCommerce.
Payment Methods
Compatibility
We tested this plugin against version 8.1+ of WooCommerce.
This plugin do not require Brazilian Market on WooCommerce but suggest your use.
Braspag only requires customer name, but more fields are need for anti fraud or other gateway features.
Configuration
After installing the plugin, activate the payment method and go to the configuration page.
- Activate the payment method.
- Fill the title and description for this payment method.
- Add the “Merchant ID” provided by Braspag.
- Check the option “Sandbox” if the store is not in Production (available for real sale).
- Add the “Secret Merchant Key” provided by Braspag (note that it is different for Sandbox).
After that, just activate the available payment methods.
All of them require a “Provider” provided by Braspag and some settings: read the tips (icon with the question mark) for more information.
Translations
You can translate Pagador (Braspag) Checkout for WooCommerce to your language.
FAQ
Does it works with Gutenberg?
Yes. WooCommerce supports WordPress 5+ and we too.
Does it works for another e-commerce plugin?
Nope. This is a WooCommerce extension.
I cannot add a payment on order administration
To create a payment on admin you should:
- Add a name to “billing address”.
- Make sure order is not empty and not paid (needs payment).
- Set Braspag as payment method.
- Transaction ID must be empty.
Transaction ID?
The transaction ID is the Braspag number on your order.
If you already have a Transaction ID (payment was done in Braspag) you must use the relative Order Action to get information from Braspag.
My orders are not being updated automatically
You should configure a URL to receive notification from Braspag.
It should be: “example.com/?wc-api=WC_Checkout_Braspag_Gateway”
Do not forget to change “example.com” to your home url.
Which URL I should inform to receive Braspag POST Notifications?
Check the previous FAQ.
How about e-wallet?
We don’t support e-wallets.
If you want to contribute a PR will be appreciated.
My bank slip number changed
We used to sent the “BoletoNumber” to Braspag but it’s not required and can cause problems for some providers.
By now we decided to remove this field and alow you to add/change it if “wc_checkout_braspag_bank_slip_number” filter.
This will not change nothing on WordPress dashboard.
What is PHP?
It is a programming language for web development. PHP as like any software it has versions. And we just support 7 (and above).
If you are using PHP in version below 7, please contact your host to update your environment.
Who are the developers?
Can I help you?
Yes! Visit GitHub repository.
ChangeLog
5.1.2
- Fixed
Amount sent as float (e.g. 25989.999999999996 for R$ 259,90): credit card, debit card and boleto now send integer cents.
- Debug log now masks customer data (name, e-mail, address, document, birthdate) and credentials (
Key, Password, Signature), keeping a few characters to identify the order.
- Exceptions thrown while building the payment request (including from
populate hooks) are now handled as payment errors instead of escaping do_payment_request.
5.1.1
- Fixed release package: include
includes/ in the trunk build so functions.php is shipped with the plugin.
5.1.0
- Added helpers and filter
wc_checkout_braspag_merchant_order_id_to_order_id to resolve WooCommerce orders from alphanumeric MerchantOrderId values.
update_order_status and update_order_from_payment now use the new helpers instead of casting MerchantOrderId to int.
5.0.0
- Removed e-wallet (WL) support.
- Added refund support for credit card and debit card payments via WooCommerce admin.
- Full and partial refunds are supported for captured transactions.
- Full refunds are also supported for authorized but not yet captured transactions.
- Boleto payments do not support refunds via WooCommerce admin.
- Added required field validation for boleto (bank slip) payments: customer document (CPF/CNPJ), billing street, number, zip code, district, city and state are now validated before sending to Braspag.
- API requests now use HTTP/1.1 to avoid WAF blocks on Braspag’s Akamai edge.
- Added “Override User-Agent” option in Advanced Settings to replace WordPress’s default User-Agent in API requests.
- “Update payment info from Braspag” action now syncs VoidedAmount to WooCommerce refunds.
- Fixed Voided transaction status mapping: captured transactions now correctly map to “refunded” instead of “cancelled”.
4.0.2
4.0.1
4.0.0
3.2.2
- Added ‘wc_checkout_braspag_update_order_from_payment_transaction’ filter.
- Added ‘is_processing_payment’ method on gateway to allow developers check the first transaction data.
- Added ‘get_recurrent_payment’ method in query requrests.
3.2.1
- Added API error messages when creating orders (‘WC_Checkout_Braspag_Messages::payment_error_message’ on ‘post_transaction’).
3.2.0
- Added ‘wc_checkout_braspag_payment_status’ filter.
- Added ‘wc_checkout_braspag_payment_status_note’ filter.
- Added ‘wc_checkout_braspag_payment_error_message’ filter.
- Added ‘wc_checkout_braspag_do_payment_request’ filter.
3.1.3
- Added a way to overwrite wallet key with front-end (e-wallet are still in BETA).
3.1.0
- Added option to send Company Name instead Customer Name if CNPJ is presented.
3.0.1
3.0.0
It’s a developer version:
- Allow developers to create payment with a payent data array (maybe by API).
- E-wallet implementation on BETA (without front-end integration by now).
For users:
2.2.2
- Updated Braspag Providers.
2.1.1
- Fixed customer identity if person type is not provided.
2.1.0
- Removed “BoletoNumber” field.
- Added filters.
2.0.1
2.0.0
- Improved payment info on order.
- Added customer validation on checkout.
- Allow developers skip payment method on checkout.
- Allow create payment on order administration.
1.4.0
- Added payment info on order.
- Added autofind for credit card brands.
- Removing Debit Card as it’s not tested.
1.3.3
- Added payment info on mails.
1.3.2
- Support to empty Credentials if already configured on Braspag.
1.3.1
1.3.0
- Fix cents on order amount and improve order validation.
1.2.0
1.1.0
- Best file organization.
- Added methods to work with ExtraDataCollection on Payment info.
1.0
- It’s alive!
- Receive payments with Braspag!