text: /**
   * @typedef {import('moleculer').Context} Context Moleculer's Context
   */
  
  module.exports = {
  	name: "paypal",
  
  	/**
  	 * Settings
  	 */
  	settings: {},
  
  	/**
  	 * Dependencies
  	 */
  	dependencies: [],
  
  	/**
  	 * Actions
  	 */
  	actions: {
  
  		validate: {
  			params: {
  				transaction: { type: 'object' }
  			},
  			handler (ctx) {
  				return this.validate(ctx.params.transaction);
  			}
  		}
  	},
  
  	/**
  	 * Events
  	 */
  	events: {
  
  	},
  
  	/**
  	 * Methods
  	 */
  	methods: {
  		validate (transaction) {
  			if (transaction.total > 100) {
  				return true;
  			} else {
  				return false;
  			}
  		}
  	},
  
  	/**
  	 * Service created lifecycle event handler
  	 */
  	created() {
  
  	},
  
  	/**
  	 * Service started lifecycle event handler
  	 */
  	async started() {
  
  	},
  
  	/**
  	 * Service stopped lifecycle event handler
  	 */
  	async stopped() {
  
  	}
  };
  