Stripe

Status
Not open for further replies.
To add multiple line items for Price ID, Quantity, Adjustable Quantity in Create a Payment Link action then follow the steps given below -

1. Hover on the top right of After Completion Redirect field.
2. Click on the "+" button as shown below -

image (7).png


3. For multiple line Items the indexing will change as per line item for e.g. suppose if there are two product then for first product lindexing will be zero, for second product indexing will be 1.

1. line_items[0][price] ===> Indicates the ID of the Price or Plan object for first product
2. line_items[0][quantity] ===> Indicates quantity of the line item being purchased for first product
3. line_items[0][adjustable_quantity][enabled] ===> Indicates configuration for this item’s quantity to be adjusted by the customer during checkout.
4. line_items[0][adjustable_quantity][minimum] ===> Indicates the minimum quantity the customer can purchase. By default this value is 0. You can specify a value up to 98. If there is only one item in the cart then that item’s quantity cannot go down to 0.
5. line_items[0][adjustable_quantity][maximum] ===> Indicates the maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 99.

Similary you can change indexing as 1 for second product line item.
1. line_items[1][price]
2. line_items[1][quantity]
3. line_items[1][adjustable_quantity][enabled]
4. line_items[1][adjustable_quantity][minimum]
5. line_items[1][adjustable_quantity][maximum]

4. MetaData: For Metadata, provide a key as shown in example below -
E.g. metadata[payment_link_createdby]

Final Request will look something like this

1666857360169.png
 

Attachments

  • 1666857197005.png
    1666857197005.png
    205.2 KB · Views: 37
Last edited:

Pabbly

Administrator
Staff member
Create an Invoice in Stripe
To add multiple custom fields, metadata & discount coupons in Create an Invoice action follow the steps given below -

1. Hover on the top right of Statement Descriptor field.
2. Click on the "+" button as shown below -


1676978287470.png



3. Custom Fields: For Custom Fields there will be two keys one for the name and another one for the value as shown in the example below
  • custom_fields[0][name]
  • custom_fields[0][value]

4. MetaData: For Metadata, provide a key as shown in example below -
Eg: metadata[invoice_createdby]

5. Discount Coupons
To provide multiple discount Coupons provide key as shown in example below
Eg: discounts[0][coupon] ----> This will be your first coupon
Eg: discounts[1][coupon] ----> This will be your 2nd Coupon
Provide the coupon ID in the value section of the field.

Please have a look at image given below -

1676978301062.png
 
Status
Not open for further replies.
Top