WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Payments

PaymentContext::set_payment_data() public WC 1.0

Set payment data context.

{} It's a method of the class: PaymentContext{}

No Hooks.

Return

null. Nothing.

Usage

$PaymentContext = new PaymentContext();
$PaymentContext->set_payment_data( $payment_data );
$payment_data(array)
Array of key value pairs of data.
Default: []

Code of PaymentContext::set_payment_data() WC 5.6.0

public function set_payment_data( $payment_data = [] ) {
	$this->payment_data = [];

	foreach ( $payment_data as $key => $value ) {
		$this->payment_data[ (string) $key ] = (string) $value;
	}
}