Grails 3.0.8 PayPal:button not shown -
i try add paypal button in grails 3 app. haven't found howto's grails 3 tried 1 grails 2 (https://grails.org/wiki/paypal%20plugin).
step 1) install plugin. in grails 2:
grails install-plugin paypal this not working in grails 3. there install command, doesn't accept paypal parameter. added
dependencies { . . . compile 'com.paypal.sdk:paypal-core:1.6.9' compile 'com.paypal.sdk:buttonmanagersdk:2.6.106' } to build.gradle. wrong way add paypal plugin ?
step 2) configure constants. in grails 2 edit config.groovy:
environments { production { grails.paypal.server = "https://www.paypal.com/cgi-bin/webscr" grails.paypal.email = "example@business.com" grails.serverurl = "http://www.grails.org" } development { grails.paypal.server = "https://www.sandbox.paypal.com/cgi-bin/webscr" grails.paypal.email = "testpp_1211202427_biz@g2one.com" grails.serverurl = "http://812.99.101.131" } } config.groovy not used in grails 3 added following application.yml
environments: development: grails.paypal.server : https://www.sandbox.paypal.com/cgi-bin/webscr grails.paypal.email : example@business.com grails.serverurl : http://www.grails.org do have configure elsewhere ?
step 3) create paypal button. should same in grails 2 , 3 add:
<paypal:button itemname="name" itemnumber="thenumber" transactionid="thetransactionid" amount="1337,00" discountamount="0" buyerid="theid" /> to gsp file. have include paypal taglib (it's not included in example) ?
when test app got
<paypal:button itemname="name" itemnumber="thenumber" transactionid="thetransactionid" amount="1337,00" discountamount="0" buyerid="theid" /> in html.
what have paypal button working ?
regards kai
Comments
Post a Comment