Skip to content

Instantly share code, notes, and snippets.

@zalun
Created April 9, 2022 21:15
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 zalun/76a1b6b701ece72de838c1da50a988c3 to your computer and use it in GitHub Desktop.
Save zalun/76a1b6b701ece72de838c1da50a988c3 to your computer and use it in GitHub Desktop.
// server/content-types/production-settings.js
module.exports = {
schema: {
kind: "singleType",
collectionName: "production_settings",
info: {
singularName: "production-settings",
pluralName: "production-settings",
displayName: "PayU Settings - Production",
description: ""
},
pluginOptions: {
'content-manager': { visible: true },
'content-type-builder': { visible: false }
},
attributes: {
payuAuthorizeUrl: {
type: "string",
default: "https://secure.payu.com/pl/standard/user/oauth/authorize",
},
payuApiUrl: {
type: "string",
default: "https://secure.payu.com/api/v2_1",
},
clientId: { type: "string" },
clientSecret: { type: "string" },
merchantPosId: { type: "string" },
notifyUrl: { type: "string" }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment