| 12345678910111213141516171819202122232425262728293031 |
- import { gql,TypedDocumentNode } from "@apollo/client";
- import { CreatePaymentReplayData } from "@/types/checkout/type";
- export const CREATE_PAYMENT_REPLAY: TypedDocumentNode<CreatePaymentReplayData> = gql`
- mutation CreatePaymentReplay(
- $orderId: Int
- $paymentMethod: String
- $paymentSuccessUrl: String
- $paymentFailureUrl: String
- $paymentCancelUrl: String
- ) {
- createPaymentReplay(
- input: {
- orderId: $orderId
- paymentMethod: $paymentMethod
- paymentSuccessUrl: $paymentSuccessUrl
- paymentFailureUrl: $paymentFailureUrl
- paymentCancelUrl: $paymentCancelUrl
- }
- ) {
- paymentReplay{
- id
- success
- message
- orderId
- status
- gatewayOrderId
- }
- }
- }
- `;
|