Hello,
With my app, I created a selling plan. It works fine in the normal store, but for B2B, it returns an error:
Only one-time purchase is available for B2B orders
Selling plan created as a one-time purchase:
{
name: 'Pay in full',
category: 'PRE_ORDER',
options: [ '0% deposit' ],
inventoryPolicy: { reserve: 'ON_SALE' },
billingPolicy: {
fixed: {
checkoutCharge: { type: 'PERCENTAGE', value: { percentage: 100 } },
remainingBalanceChargeTimeAfterCheckout: null,
remainingBalanceChargeExactTime: null,
remainingBalanceChargeTrigger: 'NO_REMAINING_BALANCE'
}
},
pricingPolicies: [ { fixed: { adjustmentType: 'PERCENTAGE', adjustmentValue: { percentage: 0 } } } ],
deliveryPolicy: { fixed: { fulfillmentTrigger: 'ASAP' } }
}
What is wrong?