fix(#622): india payment phonePe
parent
cc595acfd4
commit
551460fc14
@ -0,0 +1,31 @@ |
||||
import { PAYMENT_API_URL } from 'config' |
||||
|
||||
import { callApi } from 'helpers' |
||||
|
||||
import type { SubscriptionResponse } from 'requests/getSubscriptions' |
||||
|
||||
type Props = { |
||||
item: SubscriptionResponse, |
||||
url_return?: string | null, |
||||
} |
||||
|
||||
type PaymentResponse = { |
||||
url: string, |
||||
} |
||||
|
||||
export const getPaymentPayUrl = async ({ |
||||
item, |
||||
url_return, |
||||
}: Props): Promise<PaymentResponse> => { |
||||
const config = { |
||||
body: { |
||||
item, |
||||
url_return, |
||||
}, |
||||
} |
||||
|
||||
return callApi({ |
||||
config, |
||||
url: `${PAYMENT_API_URL}/api/v2/phonepe/create-payment-link`, |
||||
}) |
||||
} |
||||
Loading…
Reference in new issue