update payment details record
This commit is contained in:
@@ -257,6 +257,10 @@ class PaypalController extends Controller
|
||||
$total = $obj->transactions[0]->amount->total;
|
||||
$sub_total = $obj->transactions[0]->amount->details->subtotal;
|
||||
$tax = $obj->transactions[0]->amount->details->tax;
|
||||
$shipping = $obj->transactions[0]->amount->details->shipping;
|
||||
|
||||
$relatedResources = $obj->transactions[0]->related_resources[0];
|
||||
$saleId = $relatedResources->sale->id; // transaction_id
|
||||
|
||||
$currency = $obj->transactions[0]->amount->currency;
|
||||
$invoice_number = $obj->transactions[0]->invoice_number;
|
||||
@@ -305,8 +309,9 @@ class PaypalController extends Controller
|
||||
'Payer_Email' => $email,
|
||||
'Payer_Firstname' => $first_name,
|
||||
'Payer_Lastname' => $last_name,
|
||||
'PaymentMethod' => $payment_method
|
||||
|
||||
'PaymentMethod' => $payment_method,
|
||||
'ShippingCost' => $shipping,
|
||||
'TransactionId' => $saleId
|
||||
);
|
||||
|
||||
$p_id = $paypal_model->insertToPaypalDetails($payment_details);
|
||||
|
||||
Reference in New Issue
Block a user