Klarna support

This commit is contained in:
Sebastian Rindom
2020-07-10 12:25:54 +02:00
parent 788ededf4e
commit 4b4275a8ee
3 changed files with 69 additions and 35 deletions
+15
View File
@@ -968,6 +968,21 @@ class CartService extends BaseService {
update.shipping_methods = []
}
//if (cart.items.length && cart.payment_sessions.length) {
// update.payment_sessions = await Promise.all(
// region.payment_providers.map(async pId => {
// const data = await this.paymentProviderService_.createSession(pId, {
// ...cart,
// ...update,
// })
// return {
// provider_id: pId,
// data,
// }
// })
// )
//}
// Payment methods are region specific so the user needs to find a
// new payment method
if (!_.isEmpty(cart.payment_method)) {