@if ($payment) @php $result = $payment->result; $purchaseUnits = $result->purchase_units; $purchaseUnit = Arr::get($purchaseUnits, 0); $payer = $result->payer; $shipping = $purchaseUnit->shipping; @endphp
{{ trans('plugins/payment::payment.payment_id') }}: {{ $result->id }}
{{ trans('plugins/payment::payment.details') }}: @foreach ($purchaseUnits as $purchase) {{ $purchase->amount->value }} {{ $purchase->amount->currency_code }} @if (!empty($purchase->description)) ({{ $purchase->description }}) @endif @endforeach
{{ trans('plugins/payment::payment.payer_name') }} : {{ $payer->name->given_name }} {{ $payer->name->surname }}
{{ trans('plugins/payment::payment.email') }}: {{ $payer->email_address }}
@if (!empty($payer->phone) && $payer->phone->phone_number && $payer->phone->phone_number->national_number){{ trans('plugins/payment::payment.phone') }}: {{ $payer->phone->phone_number->national_number }}
@endif{{ trans('plugins/payment::payment.country') }}: {{ $payer->address->country_code }}
{{ trans('plugins/payment::payment.shipping_address') }}: {{ $shipping->name->full_name }}, {{ $shipping->address->address_line_1 }}, {{ $shipping->address->admin_area_2 }}, {{ $shipping->address->admin_area_1 }} {{ $shipping->address->postal_code }}, {{ $shipping->address->country_code }}
{{ trans('plugins/payment::payment.refunds.id') }}: {{ $item->id }}
{{ trans('plugins/payment::payment.amount') }}: {{ $item->amount->value }} {{ $item->amount->currency_code }}
{{ trans('plugins/payment::payment.refunds.status') }}: {{ $item->status }}
{{ trans('plugins/payment::payment.refunds.breakdowns') }}:
{{ trans('plugins/payment::payment.refunds.' . $k) }}: {{ $breakdown->value }} {{ $breakdown->currency_code }}
@endif @endforeach{{ trans('plugins/payment::payment.refunds.create_time') }}: {{ BaseHelper::formatDate($item->create_time) }}
{{ trans('plugins/payment::payment.refunds.update_time') }}: {{ BaseHelper::formatDate($item->update_time) }}