diff --git a/src/StripeConnect.php b/src/StripeConnect.php index b77dddd..38f7ec2 100644 --- a/src/StripeConnect.php +++ b/src/StripeConnect.php @@ -13,7 +13,7 @@ class StripeConnect private static function prepare() { - StripeBase::setApiKey(config('stripe.key')); + StripeBase::setApiKey(config('services.stripe.secret')); } private static function getStripeModel($user) diff --git a/src/Transaction.php b/src/Transaction.php index a67395a..3936e4d 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -58,6 +58,7 @@ public function create() "amount" => $this->value, "currency" => $this->currency, "customer" => $customer->account_id, + "application_fee" => $this->fee ?? null, "destination" => array( "account" => $vendor->account_id, ),