toBePaid = wfstate == 'recorded'
if toBePaid :
- paymentRequest = context.getPaymentRequest()
- options['paymentRequest'] = paymentRequest
+ options['checkout'] = context.ppSetExpressCheckout()
if cart.locked and \
cart.pendingOrderPath == context.getPhysicalPath() :
options['infos'] = infos
options['quantity'] = quantity
options['pricesSum'] = context.price
+options['discount'] = getattr(context, 'discount', 0)
options['shippingFees'] = shippingFees = context.shippingFees
options['total'] = context.amountWithFees