woo-razorpay
Last commit date
css
4 years ago
images
5 years ago
includes
4 weeks ago
js
4 years ago
public
10 months ago
razorpay-sdk
1 year ago
templates
3 years ago
tests
4 weeks 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
2 months ago
debug.md
11 months ago
phpunit.xml
3 years ago
readme.txt
1 week ago
script.js
3 years ago
woo-razorpay.php
1 week ago
checkout_block.js
18 lines
| 1 | const settings = window.wc.wcSettings.getSetting('razorpay_data', {}); |
| 2 | const label = window.wp.htmlEntities.decodeEntities(settings.title) || window.wp.i18n.__('Razorpay for woocommerce', 'razorpay'); |
| 3 | const Content = () => { |
| 4 | return window.wp.htmlEntities.decodeEntities(settings.description || ''); |
| 5 | }; |
| 6 | const Block_Gateway = { |
| 7 | name: 'razorpay', |
| 8 | label: label, |
| 9 | content: Object(window.wp.element.createElement)(Content, null ), |
| 10 | edit: Object(window.wp.element.createElement)(Content, null ), |
| 11 | canMakePayment: () => true, |
| 12 | ariaLabel: label, |
| 13 | supports: { |
| 14 | features: settings.supports, |
| 15 | }, |
| 16 | }; |
| 17 | window.wc.wcBlocksRegistry.registerPaymentMethod( Block_Gateway ); |
| 18 |