()
| 102 | } |
| 103 | |
| 104 | render () { |
| 105 | if (this.state === 'purchasing') { return } |
| 106 | super.render(...arguments) |
| 107 | // NOTE: The PayPal button MUST NOT be removed from the page between clicking it and completing the payment, or the payment is cancelled. |
| 108 | this.renderPayPalButton() |
| 109 | return null |
| 110 | } |
| 111 | |
| 112 | renderPayPalButton () { |
| 113 | if (this.$('#paypal-button-container').length && !this.$('#paypal-button-container').children().length) { |
no test coverage detected