docs: changed details related to new payment method signatures (#2876)
* docs: changed details related to new method signatures * updated the information regarding update_requests * small changes to the text * lint fixes * fixed constructor * fixes based on review
This commit is contained in:
@@ -76,20 +76,20 @@ Although this change is currently backwards compatible, it is recommended to cha
|
||||
<!-- eslint-disable max-len -->
|
||||
|
||||
```ts
|
||||
import { PaymentContext, PaymentSessionResponse } from "@medusajs/medusa"
|
||||
import { Cart, PaymentSessionData, PaymentContext, PaymentSessionResponse } from "@medusajs/medusa"
|
||||
// ...
|
||||
|
||||
class MyPaymentService extends AbstractPaymentService<TransactionBaseService> {
|
||||
// ...
|
||||
async createPayment(
|
||||
context: PaymentContext
|
||||
context: Cart & PaymentContext
|
||||
): Promise<PaymentSessionResponse> {
|
||||
// ...
|
||||
}
|
||||
|
||||
async updatePayment(
|
||||
paymentSessionData: PaymentSessionData,
|
||||
context: PaymentContext
|
||||
context: Cart & PaymentContext
|
||||
): Promise<PaymentSessionResponse> {
|
||||
// ...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user