CheckoutSchema::prepare_payment_details_for_response( array $payment_details )
This prepares the payment details for the response so it’s following the schema where it’s an array of objects.
Description Description
Parameters Parameters
- $payment_details
-
(Required) An array of payment details from the processed payment.
Return Return
(array) An array of objects where each object has the key and value as distinct properties.
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/CheckoutSchema.php