PluginProbe ʕ •ᴥ•ʔ
Razorpay for WooCommerce / 4.7.7
Razorpay for WooCommerce v4.7.7
4.8.6 4.8.5 4.8.4 trunk 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.0-beta 1.6.1 1.6.2 1.6.3 1.6.5 2.0.0 2.0.1 2.1.0 2.2.0 2.3.0 2.3.1 2.3.2 2.4.0 2.4.1 2.4.2 2.4.3 2.5.0 2.6.0 2.7.0 2.7.1 2.7.2 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 3.0.0 3.0.1 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 3.3.0 3.4.0 3.4.1 3.5.0 3.5.1 3.6.0 3.7.0 3.7.1 3.7.2 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.0.1 4.1.0 4.2.0 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.4.0 4.4.1 4.4.2 4.4.3 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3
woo-razorpay / checkout-block.php
woo-razorpay Last commit date
css 4 years ago images 5 years ago includes 11 months ago js 4 years ago public 10 months ago razorpay-sdk 1 year ago templates 3 years ago tests 11 months ago .editorconfig 9 years ago LICENSE 10 years ago btn-1cc-checkout.js 3 years ago checkout-block.php 2 years ago checkout_block.js 2 years ago composer.json 3 years ago composer.wp-install.json 3 years ago debug.md 11 months ago phpunit.xml 3 years ago readme.txt 10 months ago script.js 3 years ago woo-razorpay.php 10 months ago
checkout-block.php
46 lines
1 <?php
2
3 use Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType;
4
5 final class WC_Razorpay_Blocks extends AbstractPaymentMethodType
6 {
7 protected $name = 'razorpay';
8
9 public function initialize()
10 {
11 $this->settings = get_option('woocommerce_razorpay_settings', []);
12 }
13
14 public function get_payment_method_script_handles()
15 {
16 wp_register_script(
17 'razorpay-blocks-integration',
18 plugin_dir_url(__FILE__) . 'checkout_block.js',
19 [
20 'wc-blocks-registry',
21 'wc-settings',
22 'wp-element',
23 'wp-html-entities',
24 'wp-i18n',
25 ],
26 null,
27 true
28 );
29
30 if (function_exists('wp_set_script_translations'))
31 {
32 wp_set_script_translations('razorpay-blocks-integration');
33 }
34
35 return ['razorpay-blocks-integration'];
36 }
37
38 public function get_payment_method_data()
39 {
40 return [
41 'title' => 'Pay by Razorpay',
42 'description' => $this->settings['description'],
43 ];
44 }
45 }
46