{"__v":0,"_id":"56d88886b159f10b0030461a","category":{"__v":1,"_id":"56d88885b159f10b0030460e","pages":["56d88886b159f10b00304618","56d88886b159f10b00304619","56d88886b159f10b0030461a","56d88886b159f10b0030461b"],"project":"549a321bf876ae0b00f33623","version":"56d88884b159f10b00304609","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-01-27T21:23:44.048Z","from_sync":false,"order":4,"slug":"stripe-gateway-extension","title":"Stripe Payment Gateway Extension"},"parentDoc":null,"project":"549a321bf876ae0b00f33623","user":"549a320d5b50c21400fae689","version":{"__v":3,"_id":"56d88884b159f10b00304609","project":"549a321bf876ae0b00f33623","createdAt":"2016-03-03T18:55:00.567Z","releaseDate":"2016-03-03T18:55:00.567Z","categories":["56d88885b159f10b0030460a","56d88885b159f10b0030460b","56d88885b159f10b0030460c","56d88885b159f10b0030460d","56d88885b159f10b0030460e","56d88885b159f10b0030460f","56d88885b159f10b00304610","56d88885b159f10b00304611","56d88885b159f10b00304612","56d88885b159f10b00304613","56d88885b159f10b00304614","56d89250b159f10b003046d4","56da13977222d50b0070167c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.2.1","version":"2.2.1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-27T23:20:12.671Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"llms_stripe_after_checkout_cc_form\"\n}\n[/block]\nUse this action to output custom HTML or run custom PHP code after the Stripe Credit Card form is rendered during checkout.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?php\\n/**\\n * Output custom HTML after the Stripe Checkout Credit Card Form\\n * :::at:::return void\\n */\\nfunction after_checkout_cc_form()\\n{\\n\\n\\techo '<em>' . __( 'Powered by Stripe', 'my-text-domain' ) . '</em>';\\n\\n}\\nadd_action( 'llms_stripe_after_checkout_cc_form', 'after_checkout_cc_form' );\\n?>\",\n      \"language\": \"php\",\n      \"name\": \"llms_stripe_after_checkout_cc_form.php\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"llms_stripe_before_checkout_cc_form\"\n}\n[/block]\nUse this action to output custom HTML or run custom PHP code prior the Stripe Credit Card form being rendered during checkout.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?php\\n/**\\n * Output custom HTML before the Stripe Checkout Credit Card Form\\n * @return void\\n */\\nfunction before_checkout_cc_form()\\n{\\n\\n\\techo '<h5>' . __( 'Welcome to my Stripe Checkout Form', 'my-text-domain' ) . '</h5>';\\n\\n}\\nadd_action( 'llms_stripe_before_checkout_cc_form', 'before_checkout_cc_form' );\\n?>\",\n      \"language\": \"php\",\n      \"name\": \"llms_stripe_before_checkout_cc_form.php\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"actions-for-lifterlms-stripe-payment-gateway","type":"basic","title":"Actions for LifterLMS Stripe Payment Gateway"}

Actions for LifterLMS Stripe Payment Gateway


[block:api-header] { "type": "basic", "title": "llms_stripe_after_checkout_cc_form" } [/block] Use this action to output custom HTML or run custom PHP code after the Stripe Credit Card form is rendered during checkout. [block:code] { "codes": [ { "code": "<?php\n/**\n * Output custom HTML after the Stripe Checkout Credit Card Form\n * @return void\n */\nfunction after_checkout_cc_form()\n{\n\n\techo '<em>' . __( 'Powered by Stripe', 'my-text-domain' ) . '</em>';\n\n}\nadd_action( 'llms_stripe_after_checkout_cc_form', 'after_checkout_cc_form' );\n?>", "language": "php", "name": "llms_stripe_after_checkout_cc_form.php" } ] } [/block] [block:api-header] { "type": "basic", "title": "llms_stripe_before_checkout_cc_form" } [/block] Use this action to output custom HTML or run custom PHP code prior the Stripe Credit Card form being rendered during checkout. [block:code] { "codes": [ { "code": "<?php\n/**\n * Output custom HTML before the Stripe Checkout Credit Card Form\n * @return void\n */\nfunction before_checkout_cc_form()\n{\n\n\techo '<h5>' . __( 'Welcome to my Stripe Checkout Form', 'my-text-domain' ) . '</h5>';\n\n}\nadd_action( 'llms_stripe_before_checkout_cc_form', 'before_checkout_cc_form' );\n?>", "language": "php", "name": "llms_stripe_before_checkout_cc_form.php" } ] } [/block]