You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,16 @@ Anyone can use our plugin, but businesses listed in our **[Prohibited Business L
69
69
70
70
## 📜 Changelog
71
71
72
+
### V1.2.7
73
+
74
+
- Updated: Tested up to WordPress 6.9 & WooCommerce 10.3.6
75
+
- New: New providers including UPI/IMPS for India (INR), Interac for Canada (CAD), Binance, Moonpay and more
76
+
- New: Added Hosted checkout with multiple providers on one page, automatic customer location detection for higher conversions and page customization option
77
+
- New: Added Custom payment provider option
78
+
- Improved: Checkout on your own domain
79
+
- Improved: Updated minimum amount for some providers
$this->method_title = esc_html__('ShieldClimb – banxa.com | Min USD20 | Auto Hide If Below Min', 'shieldclimb-high-risk-card-payment-gateway'); // Escaping title
23
+
$this->method_description = esc_html__('High Risk Business Card Payment Gateway with Chargeback Protection and Instant USDC POLYGON Wallet Payouts using banxa.com infrastructure', 'shieldclimb-high-risk-card-payment-gateway'); // Escaping description
'title' => esc_html__('Title', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping title
50
+
'type' => 'text',
51
+
'description' => esc_html__('Payment method title that users will see during checkout.', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping description
52
+
'default' => esc_html__('Pay with Banxa (Credit Card)', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping default value
53
+
'desc_tip' => true,
54
+
),
55
+
'description' => array(
56
+
'title' => esc_html__('Description', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping title
57
+
'type' => 'textarea',
58
+
'description' => esc_html__('Payment method description that users will see during checkout.', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping description
'title' => esc_html__('Custom Domain', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping title
64
+
'type' => 'text',
65
+
'description' => esc_html__('Follow the custom domain guide to use your own domain name for the checkout pages and links.', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping description
66
+
'default' => esc_html__('payment.shieldclimb.com', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping default value
67
+
'desc_tip' => true,
68
+
),
69
+
'banxacom_wallet_address' => array(
70
+
'title' => esc_html__('Wallet Address', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping title
71
+
'type' => 'text',
72
+
'description' => esc_html__('Insert your USDC (Polygon) wallet address to receive instant payouts. Payouts maybe sent in ETH or USDC or USDT (Polygon or BEP-20) or POL native token. Same wallet should work to receive all. Make sure you use a self-custodial wallet to receive payouts.', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping description
73
+
'desc_tip' => true,
74
+
),
75
+
'icon_url' => array(
76
+
'title' => esc_html__('Icon URL', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping title
77
+
'type' => 'url',
78
+
'description' => esc_html__('Enter the URL of the icon image for the payment method.', 'shieldclimb-high-risk-card-payment-gateway'), // Escaping description
79
+
'desc_tip' => true,
80
+
),
81
+
);
82
+
}
83
+
// Add this method to validate the wallet address in wp-admin
84
+
publicfunctionprocess_admin_options() {
85
+
if (!isset($_POST['_wpnonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['_wpnonce'])), 'woocommerce-settings')) {
if (is_wp_error($shieldclimbgateway_banxacom_minimumcheck_response)) {
122
+
// Handle error
123
+
shieldclimbgateway_add_notice(__('Payment error:', 'shieldclimb-high-risk-card-payment-gateway') . __('Payment could not be processed due to failed currency conversion process, please try again', 'shieldclimb-high-risk-card-payment-gateway'), 'error');
shieldclimbgateway_add_notice(__('Payment error:', 'shieldclimb-high-risk-card-payment-gateway') . __('Payment could not be processed, please try again (unsupported store currency)', 'shieldclimb-high-risk-card-payment-gateway'), 'error');
136
+
returnnull;
137
+
}
138
+
}
139
+
}
140
+
141
+
if ($shieldclimbgateway_banxacom_minimumcheck < 20) {
142
+
shieldclimbgateway_add_notice(__('Payment error:', 'shieldclimb-high-risk-card-payment-gateway') . __('Order total for this payment provider must be $20 USD or more.', 'shieldclimb-high-risk-card-payment-gateway'), 'error');
if (is_wp_error($shieldclimbgateway_banxacom_gen_wallet)) {
149
+
// Handle error
150
+
shieldclimbgateway_add_notice(__('Wallet error:', 'shieldclimb-high-risk-card-payment-gateway') . __('Payment could not be processed due to incorrect payout wallet settings, please contact website admin', 'shieldclimb-high-risk-card-payment-gateway'), 'error');
shieldclimbgateway_add_notice(__('Payment error:', 'shieldclimb-high-risk-card-payment-gateway') . __('Payment could not be processed, please try again (wallet address error)', 'shieldclimb-high-risk-card-payment-gateway'), 'error');
171
+
172
+
returnnull;
173
+
}
174
+
}
175
+
176
+
// Check if the Checkout page is using Checkout Blocks
$order->add_order_note( sprintf(__('Payment completed by the provider TXID: %1$s', 'shieldclimb-high-risk-card-payment-gateway'), $shieldclimbgateway_banxacompaid_txid_out) );
242
+
// Return success response
243
+
returnarray( 'message' => 'Order marked as paid and status changed.' );
244
+
} else {
245
+
// Return error response if conditions are not met
246
+
returnnewWP_Error( 'order_not_eligible', __( 'Order is not eligible for status change.', 'shieldclimb-high-risk-card-payment-gateway' ), array( 'status' => 400 ) );
0 commit comments