<?php


namespace PaymentPlugins\Blocks\Stripe\Payments\Gateways;


use PaymentPlugins\Blocks\Stripe\Payments\AbstractStripePayment;

class ApplePayPayment extends AbstractStripePayment {

	protected $name = 'stripe_applepay';

	public function get_payment_method_script_handles() {
		$this->assets_api->register_script( 'wc-stripe-blocks-apple-pay', 'build/wc-stripe-apple-pay.js' );

		return array( 'wc-stripe-blocks-apple-pay' );
	}

	public function get_payment_method_data() {
		return wp_parse_args( array(
			'buttonType'   => $this->payment_method->get_option( 'button_type_checkout' ),
			'buttonStyle'  => $this->payment_method->get_option( 'button_style' ),
			'buttonDesign' => $this->payment_method->get_option( 'button_design', 'standard' ),
			'editorIcon'   => $this->assets_api->get_asset_url( 'assets/img/apple_pay_button_black.svg' )
		), parent::get_payment_method_data() );
	}

}