mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
41 lines
729 B
PHP
41 lines
729 B
PHP
<?php
|
|
/**
|
|
* Fraudnet source website ID.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce\WcGateway\Gateway\PayUponInvoice
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\WcGateway\FraudNet;
|
|
|
|
/**
|
|
* Class FraudNetSourceWebsiteId.
|
|
*/
|
|
class FraudNetSourceWebsiteId {
|
|
|
|
/**
|
|
* The merchant id.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $api_merchant_id;
|
|
|
|
/**
|
|
* FraudNetSourceWebsiteId constructor.
|
|
*
|
|
* @param string $api_merchant_id The merchant id.
|
|
*/
|
|
public function __construct( string $api_merchant_id ) {
|
|
$this->api_merchant_id = $api_merchant_id;
|
|
}
|
|
|
|
/**
|
|
* Returns the source website ID.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function __invoke() {
|
|
return "{$this->api_merchant_id}_checkout-page";
|
|
}
|
|
}
|