mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
Rename method
This commit is contained in:
parent
559d0654a2
commit
76bcc99bc5
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ class AdvancedCardPaymentMethod extends AbstractPaymentMethodType {
|
|||
* {@inheritDoc}
|
||||
*/
|
||||
public function get_payment_method_data() {
|
||||
$script_data = $this->smart_button()->script_data();
|
||||
$script_data = $this->smart_button_instance()->script_data();
|
||||
|
||||
return array(
|
||||
'id' => $this->name,
|
||||
|
@ -128,7 +128,7 @@ class AdvancedCardPaymentMethod extends AbstractPaymentMethodType {
|
|||
*
|
||||
* @return SmartButtonInterface
|
||||
*/
|
||||
private function smart_button(): SmartButtonInterface {
|
||||
private function smart_button_instance(): SmartButtonInterface {
|
||||
if ( $this->smart_button instanceof SmartButtonInterface ) {
|
||||
return $this->smart_button;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue