Skip to content

Instantly share code, notes, and snippets.

@ardeearam
Created July 13, 2020 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ardeearam/27380f4cb17b77334076865d41b7ae81 to your computer and use it in GitHub Desktop.
Save ardeearam/27380f4cb17b77334076865d41b7ae81 to your computer and use it in GitHub Desktop.
Get One Time URL
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