πŸ’³Charges

Direct Charges Example

In the example below we create a direct charge. A direct charge (present on the shopify style payment model) is as described, a direct transaction between the platforms store (connected account) and the customer. The platform does not interfere with this other than taking platform fees. As a result direct charges do not show on your stripe dashboard but show against hte connected account's dashboard. The connected account is liable for stripe fees.

// Take payment of 50GBP directly into the connected account
$store->createDirectCharge(5000, 'GBP');

Destination Charges Example

Destination charges are slightly different, they pass through your stripe account but are immediately routed to the connected account once successfully taken. This is typical for payment models like Lyft etc. Again you can extract platform fees during this process too. With destination charges, the platform pays the stripe fees.

// Take payment of 50GBP and transfer to the connected account.
$store->createDestinationCharge(5000, 'GBP');

Last updated