RSS Feed/News How to get payment fee in completePurchase(XF\Payment\CallbackState $state)?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,656
Points
823

Reputation:

After digging into PayPalRest.php code and doing some research, I think this might work: $state->resource['purchase_units'][0]['payments']['captures'][0]['seller_receivable_breakdown']['paypal_fee']['value']

What about Stripe and other providers?

Continue reading...
 
Status
Not open for further replies.
Top