Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transactionFee parameter does nothing #208

Open
clawfire opened this issue Oct 28, 2021 · 0 comments
Open

transactionFee parameter does nothing #208

clawfire opened this issue Oct 28, 2021 · 0 comments

Comments

@clawfire
Copy link

clawfire commented Oct 28, 2021

I'm trying to use stripe connect and I saw I should be able to set a transactionFee but it does nothing in my case.

$this->transaction_data = [
    'amount' => $order_total,
    'currency' => $event->currency->code,
    'description' => 'Order for customer: ' . $order_email,
    'paymentMethod' => $this->options['paymentMethod'],
    'receipt_email' => $order_email,
    'returnUrl' => $returnUrl,
    'confirm' => true,
    // Add the configured payment gateway fees to the existing fees.
    'transactionFee' => $gateway_fees + $fees ,
    // Pass the destination ID
    'destination' => $account_payment_gateway['transfer_data_destination_id']
];

The transaction transfer to the connected account works well, but the transactionFee isn't used.

Stripe's log on the /v1/payment_intentsshow no sign of application_fee parameters:

{
  "amount": "1672",
  "currency": "eur",
  "description": "Order for customer: [email protected]",
  "transfer_data": {
    "destination": "acct_1JXXL0JqGbicBCJ7"
  },
  "receipt_email": "[email protected]",
  "payment_method": "pm_1JpfVzDhKAJibjYZurgJEjSk",
  "confirmation_method": "manual",
  "capture_method": "manual",
  "confirm": "true",
  "return_url": "https://tickets.out.lu/e/4/checkout/success?is_payment_successful=1"
}

Also, transactionFee show nowhere in the entire codebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant