Skip to content

Commit

Permalink
Update Reference Id
Browse files Browse the repository at this point in the history
  • Loading branch information
dzung2t committed Aug 7, 2015
1 parent 52f0be0 commit d1bc164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/paymentwall_gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function ipnResponse()
if ($this->settings['enable_delivery']) {
// Delivery Confirmation
$delivery = new Paymentwall_GenerericApiObject('delivery');
$response = $delivery->post($this->prepareDeliveryConfirmationData($order));
$response = $delivery->post($this->prepareDeliveryConfirmationData($order, $pingback->getReferenceId()));
}

$order->add_order_note(__('Paymentwall payment completed', 'woocommerce'));
Expand Down Expand Up @@ -257,10 +257,10 @@ function prepareUserProfileData($order)
);
}

function prepareDeliveryConfirmationData($order)
function prepareDeliveryConfirmationData($order, $ref)
{
return array(
'payment_id' => $order->payment_method,
'payment_id' => $ref,
'type' => 'digital',
'status' => 'delivered',
'estimated_delivery_datetime' => date('Y/m/d H:i:s'),
Expand Down

0 comments on commit d1bc164

Please sign in to comment.