Created
July 13, 2020 03:08
-
-
Save ardeearam/27380f4cb17b77334076865d41b7ae81 to your computer and use it in GitHub Desktop.
Get One Time URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function ONETIME_CREATE(url) { | |
return gql` | |
mutation { | |
appPurchaseOneTimeCreate( | |
name: "test" | |
price: { amount: 10, currencyCode: USD } | |
returnUrl: '${url}' | |
test: true | |
) { | |
userErrors { | |
field | |
message | |
} | |
confirmationUrl | |
appPurchaseOneTime { | |
id | |
} | |
} | |
} | |
`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment