diff --git a/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesAPI.kt b/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesAPI.kt index 58988c2792..00233ac6ae 100644 --- a/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesAPI.kt +++ b/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesAPI.kt @@ -24,14 +24,12 @@ class InAppPurchasesAPI @Inject constructor(private val iapService: InAppPurchas fun executeOrder( basketId: Long, - productId: String, purchaseToken: String, price: Double, currencyCode: String, ): Call { return iapService.executeOrder( basketId = basketId, - productId = productId, paymentProcessor = ApiConstants.PAYMENT_PROCESSOR, purchaseToken = purchaseToken, price = price, diff --git a/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesService.kt b/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesService.kt index 28375831ce..80cd9fc0d6 100644 --- a/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesService.kt +++ b/OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesService.kt @@ -43,9 +43,8 @@ interface InAppPurchasesService { @POST("/api/iap/v1/execute/") fun executeOrder( @Field("basket_id") basketId: Long, - @Field("productId") productId: String, @Field("payment_processor") paymentProcessor: String, - @Field("purchaseToken") purchaseToken: String, + @Field("purchase_token") purchaseToken: String, @Field("price") price: Double, @Field("currency_code") currencyCode: String, ): Call diff --git a/OpenEdXMobile/src/main/java/org/edx/mobile/repository/InAppPurchasesRepository.kt b/OpenEdXMobile/src/main/java/org/edx/mobile/repository/InAppPurchasesRepository.kt index 92328aa088..d045878da6 100644 --- a/OpenEdXMobile/src/main/java/org/edx/mobile/repository/InAppPurchasesRepository.kt +++ b/OpenEdXMobile/src/main/java/org/edx/mobile/repository/InAppPurchasesRepository.kt @@ -45,7 +45,6 @@ class InAppPurchasesRepository(private var iapAPI: InAppPurchasesAPI) { fun executeOrder( basketId: Long, - productId: String, purchaseToken: String, price: Double, currencyCode: String, @@ -53,7 +52,6 @@ class InAppPurchasesRepository(private var iapAPI: InAppPurchasesAPI) { ) { iapAPI.executeOrder( basketId = basketId, - productId = productId, purchaseToken = purchaseToken, price = price, currencyCode = currencyCode, diff --git a/OpenEdXMobile/src/main/java/org/edx/mobile/viewModel/InAppPurchasesViewModel.kt b/OpenEdXMobile/src/main/java/org/edx/mobile/viewModel/InAppPurchasesViewModel.kt index 13c8a4cf94..9e99bd3f28 100644 --- a/OpenEdXMobile/src/main/java/org/edx/mobile/viewModel/InAppPurchasesViewModel.kt +++ b/OpenEdXMobile/src/main/java/org/edx/mobile/viewModel/InAppPurchasesViewModel.kt @@ -203,7 +203,6 @@ class InAppPurchasesViewModel @Inject constructor( this.iapFlowData = iapData repository.executeOrder( basketId = iapData.basketId, - productId = iapData.productInfo.courseSku, purchaseToken = iapData.purchaseToken, price = iapData.price, currencyCode = iapData.currencyCode,