mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-05-01 04:52:18 +08:00
47 lines
911 B
PHP
47 lines
911 B
PHP
<?php
|
|
|
|
/**
|
|
* WooCommerce Payment token for Venmo.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce\WcPaymentTokens
|
|
*/
|
|
declare (strict_types=1);
|
|
namespace WooCommerce\PayPalCommerce\WcPaymentTokens;
|
|
|
|
use WC_Payment_Token;
|
|
/**
|
|
* Class PaymentTokenVenmo
|
|
*/
|
|
class PaymentTokenVenmo extends WC_Payment_Token
|
|
{
|
|
/**
|
|
* Token Type String.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $type = 'Venmo';
|
|
/**
|
|
* Extra data.
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected $extra_data = array('email' => '');
|
|
/**
|
|
* Get PayPal account email.
|
|
*
|
|
* @return string PayPal account email.
|
|
*/
|
|
public function get_email()
|
|
{
|
|
return $this->get_meta('email');
|
|
}
|
|
/**
|
|
* Set PayPal account email.
|
|
*
|
|
* @param string $email PayPal account email.
|
|
*/
|
|
public function set_email($email)
|
|
{
|
|
$this->add_meta_data('email', $email, \true);
|
|
}
|
|
}
|