Automattic\WooCommerce\StoreApi\Payments

PaymentResult::set_payment_details()publicWC 1.0

Set payment details.

Method of the class: PaymentResult{}

No Hooks.

Return

null. Nothing (null).

Usage

$PaymentResult = new PaymentResult();
$PaymentResult->set_payment_details( $payment_details );
$payment_details(array)
Array of key value pairs of data.
Default: []

PaymentResult::set_payment_details() code WC 9.3.3

public function set_payment_details( $payment_details = [] ) {
	$this->payment_details = [];

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