関数
Listener::getOrderIdFromRefundId( string $refundId )
Returns the order_id associated with an Amazon Pay refundId, if one exists
パラメータ パラメータ
- $refundId
(文字列) (必須)
ファイル: src/IPN/Listener.php
public function getOrderIdFromRefundId($refundId) { global $wpdb; $order_meta_table_name = $wpdb->prefix . 'usces_order_meta'; $query = $wpdb->prepare( "SELECT order_id FROM {$order_meta_table_name} WHERE meta_key = %s AND meta_value = %s ORDER BY order_id ASC LIMIT 1", Models\OrderMeta::REFUND_ID, $refundId ); $orderId = $wpdb->get_var($query); if (empty($orderId)) { return null; } return $orderId; }