Setup Stripe Invoicing

Setup Stripe Invoicing

Parcelcraft relies on the information from Stripe invoices to determine the order details and the products to ship. Creating an invoice is an optional setting in Stripe, but it is necessary for Parcelcraft to automatically generate a list of unshipped orders. While you can still use Parcelcraft to create shipping labels without invoicing enabled, 1-Click Shipping will not be available.

Enabling Invoices for Stripe Payment Links

To enable invoices for Stripe payment links, follow these steps:

  1. Go to the Stripe Payment Links (opens in a new tab) page or click on More + and then Payment links on the Stripe dashboard.

Payment Links

  1. For each active Payment link that you want to automate shipping for, click the ... button next to the Payment link and select Edit.

  2. Click the After payment tab.

  3. In the Post-payment invoice section, turn on the Create an invoice PDF option.

Edit Payment Link

  1. Save the changes to the Payment link by clicking the Update link button.

By enabling invoice creation for your Payment links, Parcelcraft will be able to access the necessary order information to automate the shipping process.

Enabling Invoices for Stripe Checkout Sessions

If you are using the Stripe API for Checkout Sessions, you need to set the invoice_creation.enabled parameter to true when creating the Checkout Session. Here's an example:

const session = await stripe.checkout.sessions.create({
  payment_method_types: ['card'],
  line_items: [
    {
      price_data: {
        currency: 'usd',
        product_data: {
          name: 'T-shirt',
        },
        unit_amount: 2000,
      },
      quantity: 1,
    },
  ],
  mode: 'payment',
  success_url: 'https://example.com/success',
  cancel_url: 'https://example.com/cancel',
  invoice_creation: {
    enabled: true,
  },
});

For more information on enabling invoices for Checkout Sessions, refer to the Stripe API documentation (opens in a new tab).

Note: Enabling invoices for Stripe Payment Links or Checkout Sessions is crucial for Parcelcraft to automate the shipping process and provide 1-Click Shipping functionality.

If you have any further questions or need assistance with setting up Stripe invoicing for Parcelcraft, please don't hesitate to reach out to our support team at support@parcelcraft.com.