{"id":107267,"date":"2019-08-02T15:42:50","date_gmt":"2019-08-02T15:42:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/woocommerce-checkout-braspag\/"},"modified":"2024-07-27T22:13:53","modified_gmt":"2024-07-27T22:13:53","slug":"woo-checkout-braspag","status":"publish","type":"plugin","link":"https:\/\/ast.wordpress.org\/plugins\/woo-checkout-braspag\/","author":10474405,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"4.0.2","stable_tag":"4.0.2","tested":"6.6.5","requires":"4.7","requires_php":"7.2","requires_plugins":null,"header_name":"Pagador (Braspag) Checkout for WooCommerce","header_author":"Vizir Software Studio, M\u00e1rio Valney","header_description":"Braspag payment gateway for WooCommerce.","assets_banners_color":"00adee","last_updated":"2024-07-27 22:13:53","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/mariovalney\/woo-checkout-braspag","header_plugin_uri":"https:\/\/github.com\/Vizir\/woo-checkout-braspag","header_author_uri":"http:\/\/vizir.com.br\/en","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2855,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.4.0":{"tag":"1.4.0","author":"mariovalney","date":"2020-05-28 20:46:03"},"2.0.0":{"tag":"2.0.0","author":"mariovalney","date":"2020-05-28 21:55:04"},"2.0.1":{"tag":"2.0.1","author":"mariovalney","date":"2020-09-23 22:08:49"},"2.1.1":{"tag":"2.1.1","author":"mariovalney","date":"2020-09-23 22:08:49"},"2.2.2":{"tag":"2.2.2","author":"mariovalney","date":"2020-11-23 01:25:22"},"3.0.1":{"tag":"3.0.1","author":"mariovalney","date":"2021-01-07 15:26:53"},"3.1.0":{"tag":"3.1.0","author":"mariovalney","date":"2021-03-11 20:32:22"},"3.1.1":{"tag":"3.1.1","author":"mariovalney","date":"2021-03-12 17:02:16"},"3.2.0":{"tag":"3.2.0","author":"mariovalney","date":"2023-10-08 01:36:19"},"3.2.1":{"tag":"3.2.1","author":"mariovalney","date":"2023-10-17 01:32:49"},"4.0.0":{"tag":"4.0.0","author":"mariovalney","date":"2024-02-25 22:38:50"},"4.0.1":{"tag":"4.0.1","author":"mariovalney","date":"2024-03-31 22:54:11"},"4.0.2":{"tag":"4.0.2","author":"mariovalney","date":"2024-07-27 22:13:53"}},"upgrade_notice":{"":"<p>Support to new PHP version. It&#039;s a major update!<\/p>\n\n<p>Please, check changes on staging before update.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2132873,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2132873,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2132873,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2132873,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.4.0","2.0.0","2.0.1","2.1.1","2.2.2","3.0.1","3.1.0","3.1.1","3.2.0","3.2.1","4.0.0","4.0.1","4.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Screenshot 1","2":"Screenshot 2","3":"Screenshot 3"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[174634,174636,507,286],"plugin_category":[45],"plugin_contributors":[87575],"plugin_business_model":[],"class_list":["post-107267","plugin","type-plugin","status-publish","hentry","plugin_tags-braspag","plugin_tags-mariovalney","plugin_tags-payment","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-mariovalney","plugin_committers-mariovalney"],"banners":{"banner":"https:\/\/ps.w.org\/woo-checkout-braspag\/assets\/banner-772x250.png?rev=2132873","banner_2x":"https:\/\/ps.w.org\/woo-checkout-braspag\/assets\/banner-1544x500.png?rev=2132873","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/woo-checkout-braspag\/assets\/icon-128x128.png?rev=2132873","icon_2x":"https:\/\/ps.w.org\/woo-checkout-braspag\/assets\/icon-256x256.png?rev=2132873","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Add Braspag gateway to WooCommerce.<\/p>\n\n<p><a href=\"https:\/\/www.braspag.com.br\">Braspag<\/a> is a Brazilian payment gateway.<\/p>\n\n<h3>Development<\/h3>\n\n<p>This plugin was developer using the <a href=\"https:\/\/braspag.github.io\">official docs<\/a> of gateway, without any support.<\/p>\n\n<p>None of developers have link with Braspag or WooCommerce.<\/p>\n\n<h3>Payment Methods<\/h3>\n\n<ul>\n<li>Bank Slip<\/li>\n<li>Credit Card<\/li>\n<\/ul>\n\n<h3>Compatibility<\/h3>\n\n<p>We tested this plugin against version 8.1+ of WooCommerce.<\/p>\n\n<p>This plugin do not require <a href=\"http:\/\/wordpress.org\/plugins\/woocommerce-extra-checkout-fields-for-brazil\/\">Brazilian Market on WooCommerce<\/a> but suggest your use.<\/p>\n\n<p>Braspag only requires customer name, but more fields are need for anti fraud or other gateway features.<\/p>\n\n<h3>Configuration<\/h3>\n\n<p>After installing the plugin, activate the payment method and go to the configuration page.<\/p>\n\n<ul>\n<li>Activate the payment method.<\/li>\n<li>Fill the title and description for this payment method.<\/li>\n<li>Add the \"Merchant ID\" provided by Braspag.<\/li>\n<li>Check the option \"Sandbox\" if the store is not in Production (available for real sale).<\/li>\n<li>Add the \"Secret Merchant Key\" provided by Braspag (note that it is different for Sandbox).<\/li>\n<\/ul>\n\n<p>After that, just activate the available payment methods.<\/p>\n\n<p>All of them require a \"Provider\" provided by Braspag and some settings: read the tips (icon with the question mark) for more information.<\/p>\n\n<h4>Translations<\/h4>\n\n<p>You can <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/woo-checkout-braspag\">translate Pagador (Braspag) Checkout for WooCommerce<\/a> to your language.<\/p>\n\n<!--section=installation-->\n<ul>\n<li>Install \"Pagador (Braspag) Checkout for WooCommerce\" by plugins dashboard.<\/li>\n<\/ul>\n\n<p>Or<\/p>\n\n<ul>\n<li>Upload the entire <code>woo-checkout-braspag<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<\/ul>\n\n<p>Then<\/p>\n\n<ul>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20it%20works%20with%20gutenberg%3F'><h3>Does it works with Gutenberg?<\/h3><\/dt>\n<dd><p>Yes. WooCommerce supports WordPress 5+ and we too.<\/p><\/dd>\n<dt id='does%20it%20works%20for%20another%20e-commerce%20plugin%3F'><h3>Does it works for another e-commerce plugin?<\/h3><\/dt>\n<dd><p>Nope. This is a WooCommerce extension.<\/p><\/dd>\n<dt id='i%20cannot%20add%20a%20payment%20on%20order%20administration'><h3>I cannot add a payment on order administration<\/h3><\/dt>\n<dd><p>To create a payment on admin you should:<\/p>\n\n<ul>\n<li>Add a name to \"billing address\".<\/li>\n<li>Make sure order is not empty and not paid (needs payment).<\/li>\n<li>Set Braspag as payment method.<\/li>\n<li>Transaction ID must be empty.<\/li>\n<\/ul><\/dd>\n<dt id='transaction%20id%3F'><h3>Transaction ID?<\/h3><\/dt>\n<dd><p>The transaction ID is the Braspag number on your order.<\/p>\n\n<p>If you already have a Transaction ID (payment was done in Braspag) you must use the relative Order Action to get information from Braspag.<\/p><\/dd>\n<dt id='my%20orders%20are%20not%20being%20updated%20automatically'><h3>My orders are not being updated automatically<\/h3><\/dt>\n<dd><p>You should configure a URL to receive notification from Braspag.<\/p>\n\n<p>It should be: \"example.com\/?wc-api=WC_Checkout_Braspag_Gateway\"<\/p>\n\n<p>Do not forget to change \"example.com\" to your home url.<\/p><\/dd>\n<dt id='which%20url%20i%20should%20inform%20to%20receive%20braspag%20post%20notifications%3F'><h3>Which URL I should inform to receive Braspag POST Notifications?<\/h3><\/dt>\n<dd><p>Check the previous FAQ.<\/p><\/dd>\n<dt id='how%20about%20e-wallet%3F'><h3>How about e-wallet?<\/h3><\/dt>\n<dd><p>E-wallet is still on ALFA and not fully implemented. The payment method will not show up on checkout page (or order administration).<\/p>\n\n<p>We DO NOT RECOMMEND, but you can implement it by yourself:<\/p>\n\n<p>Step 1 - Create your frontend implementation as documented by e-wallet.<\/p>\n\n<p>Step 2 - Filter the <code>wc_checkout_braspag_frontend_payment_methods<\/code> return to allow e-wallet on front-end.<\/p>\n\n<p>Step 3 - Create and fill hidden inputs on <code>braspag\/payment-methods\/wl-form.php<\/code> for the data received by e-wallet:<\/p>\n\n<ul>\n<li>braspag_payment_wl_type: the e-wallet type (Braspag docs: Wallet.Type).<\/li>\n<li>braspag_payment_wl_token: the received token\/code from e-wallet (we will fill the required Braspag field for each wallet type - there is no standard field name).<\/li>\n<li>braspag_payment_wl_installments: payment installments (from Braspag docs, but we are not sure it can be not 1).<\/li>\n<\/ul>\n\n<p>Step 4 - Make sure everything is configured on WooCommerce admin (WalletKeys) and on Braspag (environment and production credentials).<\/p>\n\n<p>If you want to contribute a PR will be appreciated.<\/p><\/dd>\n<dt id='my%20bank%20slip%20number%20changed'><h3>My bank slip number changed<\/h3><\/dt>\n<dd><p>We used to sent the \"BoletoNumber\" to Braspag but it's not required and can cause problems for some providers.<\/p>\n\n<p>By now we decided to remove this field and alow you to add\/change it if \"wc_checkout_braspag_bank_slip_number\" filter.<\/p>\n\n<p>This will not change nothing on WordPress dashboard.<\/p><\/dd>\n<dt id='what%20is%20php%3F'><h3>What is PHP?<\/h3><\/dt>\n<dd><p>It is a programming language for web development. PHP as like any software it has versions. And we just support 7 (and above).<\/p>\n\n<p>If you are using PHP in version below 7, please contact your host to update your environment.<\/p><\/dd>\n<dt id='who%20are%20the%20developers%3F'><h3>Who are the developers?<\/h3><\/dt>\n<dd><ul>\n<li><a href=\"https:\/\/mariovalney.com\/me\">M\u00e1rio Valney<\/a> is a Brazilian developer who integrates the <a href=\"https:\/\/profiles.wordpress.org\/mariovalney\">WordPress community<\/a>.<\/li>\n<\/ul><\/dd>\n<dt id='can%20i%20help%20you%3F'><h3>Can I help you?<\/h3><\/dt>\n<dd><p>Yes! Visit <a href=\"https:\/\/github.com\/mariovalney\/woo-checkout-braspag\">GitHub repository<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>4.0.2<\/h4>\n\n<ul>\n<li>Minor fixes.<\/li>\n<\/ul>\n\n<h4>4.0.1<\/h4>\n\n<ul>\n<li>Minor fixes.<\/li>\n<\/ul>\n\n<h4>4.0.0<\/h4>\n\n<ul>\n<li>Support to PHP 8.2.<\/li>\n<\/ul>\n\n<h4>3.2.2<\/h4>\n\n<ul>\n<li>Added 'wc_checkout_braspag_update_order_from_payment_transaction' filter.<\/li>\n<li>Added 'is_processing_payment' method on gateway to allow developers check the first transaction data.<\/li>\n<li>Added 'get_recurrent_payment' method in query requrests.<\/li>\n<\/ul>\n\n<h4>3.2.1<\/h4>\n\n<ul>\n<li>Added API error messages when creating orders ('WC_Checkout_Braspag_Messages::payment_error_message' on 'post_transaction').<\/li>\n<\/ul>\n\n<h4>3.2.0<\/h4>\n\n<ul>\n<li>Added 'wc_checkout_braspag_payment_status' filter.<\/li>\n<li>Added 'wc_checkout_braspag_payment_status_note' filter.<\/li>\n<li>Added 'wc_checkout_braspag_payment_error_message' filter.<\/li>\n<li>Added 'wc_checkout_braspag_do_payment_request' filter.<\/li>\n<\/ul>\n\n<h4>3.1.3<\/h4>\n\n<ul>\n<li>Added a way to overwrite wallet key with front-end (e-wallet are still in BETA).<\/li>\n<\/ul>\n\n<h4>3.1.0<\/h4>\n\n<ul>\n<li>Added option to send Company Name instead Customer Name if CNPJ is presented.<\/li>\n<\/ul>\n\n<h4>3.0.1<\/h4>\n\n<ul>\n<li>Fixed CardToken storage.<\/li>\n<\/ul>\n\n<h4>3.0.0<\/h4>\n\n<p>It's a developer version:<\/p>\n\n<ul>\n<li>Allow developers to create payment with a payent data array (maybe by API).<\/li>\n<li>E-wallet implementation on BETA (without front-end integration by now).<\/li>\n<\/ul>\n\n<p>For users:<\/p>\n\n<ul>\n<li>Few translation fixes.<\/li>\n<\/ul>\n\n<h4>2.2.2<\/h4>\n\n<ul>\n<li>Updated Braspag Providers.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>Fixed customer identity if person type is not provided.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Removed \"BoletoNumber\" field.<\/li>\n<li>Added filters.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Translation fix<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Improved payment info on order.<\/li>\n<li>Added customer validation on checkout.<\/li>\n<li>Allow developers skip payment method on checkout.<\/li>\n<li>Allow create payment on order administration.<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Added payment info on order.<\/li>\n<li>Added autofind for credit card brands.<\/li>\n<li>Removing Debit Card as it's not tested.<\/li>\n<\/ul>\n\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Added payment info on mails.<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Support to empty Credentials if already configured on Braspag.<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Support to Issuer.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Fix cents on order amount and improve order validation.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Support to Safra<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Best file organization.<\/li>\n<li>Added methods to work with ExtraDataCollection on Payment info.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>It's alive!<\/li>\n<li>Receive payments with Braspag!<\/li>\n<\/ul>","raw_excerpt":"Add Braspag payment to your WooCommerce e-commerce!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/107267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=107267"}],"author":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mariovalney"}],"wp:attachment":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=107267"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=107267"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=107267"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=107267"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=107267"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=107267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}