generated from axonivy-market/market-product
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/marp 1955 stripe connector change from sdk to open api rest c…
…all (#5)
- Loading branch information
1 parent
ff3f792
commit 34d848f
Showing
27 changed files
with
592 additions
and
175,029 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 44 additions & 48 deletions
92
...hd/com/axonivy/connector/stripe/CreateCheckoutSessionDemo/CreateCheckoutSessionDemo.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,55 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:ic="http://ivyteam.ch/jsf/component" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:ic="http://ivyteam.ch/jsf/component" xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
|
||
<h:body> | ||
<ui:composition template="/layouts/frame-10-full-width.xhtml"> | ||
<ui:param name="managedBean" value="#{createCheckoutSessionBean}" /> | ||
<ui:define name="title">#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/CreateCheckoutSessionDemo/createCheckoutSessionTitle")}</ui:define> | ||
<ui:define name="content"> | ||
<h3>#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/CreateCheckoutSessionDemo/embedStripeCheckoutSession")}</h3> | ||
<h:form id="form"> | ||
<p:panelGrid columns="3" layout="grid" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4, ui-g-12 ui-md-3 ui-lg-6"> | ||
<ui:composition template="/layouts/frame-10-full-width.xhtml"> | ||
<ui:param name="managedBean" value="#{createCheckoutSessionBean}" /> | ||
<ui:define name="title">#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/CreateCheckoutSessionDemo/createCheckoutSessionTitle")}</ui:define> | ||
<ui:define name="content"> | ||
<h3>#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/CreateCheckoutSessionDemo/embedStripeCheckoutSession")}</h3> | ||
<h:form id="form"> | ||
<p:panelGrid columns="3" layout="grid" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4, ui-g-12 ui-md-3 ui-lg-6"> | ||
|
||
<p:outputLabel for="price" value="PriceID" /> | ||
<p:inputText id="price" value="#{managedBean.priceId}" | ||
disabled="#{managedBean.disableForm}"> | ||
<f:validator validatorId="priceIdValidator" /> | ||
</p:inputText> | ||
<p:message for="price" /> | ||
<p:outputLabel for="price" value="PriceID" /> | ||
<p:inputText id="price" value="#{managedBean.priceId}" | ||
disabled="#{managedBean.disableForm}"> | ||
<f:validator validatorId="priceIdValidator" /> | ||
</p:inputText> | ||
<p:message for="price" /> | ||
|
||
<p:outputLabel for="quantity" value="Quantity" /> | ||
<p:inputNumber id="quantity" | ||
disabled="#{managedBean.disableForm}" | ||
value="#{managedBean.quantity}"> | ||
<f:validator validatorId="quantityValidator" /> | ||
</p:inputNumber> | ||
<p:message for="quantity" /> | ||
<p:outputLabel for="quantity" value="Quantity" /> | ||
<p:inputNumber id="quantity" disabled="#{managedBean.disableForm}" | ||
value="#{managedBean.quantity}"> | ||
<f:validator validatorId="quantityValidator" /> | ||
</p:inputNumber> | ||
<p:message for="quantity" /> | ||
|
||
</p:panelGrid> | ||
<br /> | ||
<div class="command-btns"> | ||
<p:commandLink id="cancel" actionListener="#{logic.close}" | ||
value="Cancel" immediate="true" /> | ||
<p:commandButton id="resquest-button" widgetVar="btn" | ||
disabled="#{managedBean.disableForm}" process="@form" | ||
update="form stripeContainer" value="Create" | ||
icon="pi pi-check" actionListener="#{managedBean.onRequest}" | ||
oncomplete="if (!args.validationFailed) {startCheckout();}" /> | ||
</p:panelGrid> | ||
<br /> | ||
<div class="command-btns"> | ||
<p:commandLink id="cancel" actionListener="#{logic.close}" value="Cancel" | ||
immediate="true" /> | ||
<p:commandButton id="resquest-button" widgetVar="btn" | ||
disabled="#{managedBean.disableForm}" process="@form" | ||
update="form stripeContainer" value="Create" icon="pi pi-check" | ||
actionListener="#{managedBean.onRequest}" | ||
oncomplete="if (!args.validationFailed) {startCheckout();}" /> | ||
|
||
</div> | ||
<br /> | ||
<h:panelGroup id="stripeContainer"> | ||
<ic:com.axonivy.connector.stripe.StripeEmbededCheckout | ||
quantity="#{managedBean.quantity}" | ||
priceId="#{managedBean.priceId}" /> | ||
</h:panelGroup> | ||
</h:form> | ||
</div> | ||
<br /> | ||
<h:panelGroup id="stripeContainer"> | ||
<ic:com.axonivy.connector.stripe.StripeEmbededCheckout | ||
quantity="#{managedBean.quantity}" priceId="#{managedBean.priceId}" /> | ||
</h:panelGroup> | ||
</h:form> | ||
|
||
</ui:define> | ||
</ui:composition> | ||
</ui:define> | ||
</ui:composition> | ||
</h:body> | ||
|
||
</html> |
2 changes: 1 addition & 1 deletion
2
...xonivy/connector/stripe/CreateCheckoutSessionDemo/CreateCheckoutSessionDemoProcess.p.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 41 additions & 43 deletions
84
...emo/src_hd/com/axonivy/connector/stripe/CreatePaymentLinkDemo/CreatePaymentLinkDemo.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,52 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:ic="http://ivyteam.ch/jsf/component" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:ic="http://ivyteam.ch/jsf/component" xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
<h:body> | ||
<ui:composition template="/layouts/frame-10-full-width.xhtml"> | ||
<ui:param name="managedBean" value="#{paymentLinkBean}" /> | ||
<ui:define name="title">#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/PaymendLinkDemo/paymentLinkTitle")}</ui:define> | ||
<ui:define name="content"> | ||
<ui:composition template="/layouts/frame-10-full-width.xhtml"> | ||
<ui:param name="managedBean" value="#{paymentLinkBean}" /> | ||
<ui:define name="title">#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/PaymendLinkDemo/paymentLinkTitle")}</ui:define> | ||
<ui:define name="content"> | ||
|
||
<h3>#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/PaymendLinkDemo/createPaymentLink")}</h3> | ||
<h3>#{ivy.cms.co("/Dialogs/com/axonivy/connector/stripe/demo/PaymendLinkDemo/createPaymentLink")}</h3> | ||
|
||
<h:form id="form"> | ||
<p:panelGrid columns="3" layout="grid" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4, ui-g-12 ui-md-3 ui-lg-6"> | ||
<h:form id="form"> | ||
<p:panelGrid columns="3" layout="grid" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4, ui-g-12 ui-md-3 ui-lg-6"> | ||
|
||
<p:outputLabel for="price" value="PriceID" /> | ||
<p:inputText id="price" value="#{managedBean.priceId}" | ||
disabled="#{managedBean.disableForm}"> | ||
<f:validator validatorId="priceIdValidator" /> | ||
</p:inputText> | ||
<p:message for="price" /> | ||
<p:outputLabel for="price" value="PriceID" /> | ||
<p:inputText id="price" value="#{managedBean.priceId}" | ||
disabled="#{managedBean.disableForm}"> | ||
<f:validator validatorId="priceIdValidator" /> | ||
</p:inputText> | ||
<p:message for="price" /> | ||
|
||
<p:outputLabel for="quantity" value="Quantity" /> | ||
<p:inputNumber id="quantity" value="#{managedBean.quantity}" | ||
disabled="#{managedBean.disableForm}"> | ||
<f:validator validatorId="quantityValidator" /> | ||
</p:inputNumber> | ||
<p:message for="quantity" /> | ||
<p:outputLabel for="quantity" value="Quantity" /> | ||
<p:inputNumber id="quantity" value="#{managedBean.quantity}" | ||
disabled="#{managedBean.disableForm}"> | ||
<f:validator validatorId="quantityValidator" /> | ||
</p:inputNumber> | ||
<p:message for="quantity" /> | ||
|
||
<p:outputLabel for="result" value="Result" /> | ||
<p:inputTextarea id="result" rows="6" cols="33" | ||
value="#{managedBean.result}" /> | ||
<p:outputLabel for="result" value="Result" /> | ||
<p:inputTextarea id="result" rows="6" cols="33" | ||
value="#{managedBean.result}" readonly="true" /> | ||
|
||
</p:panelGrid> | ||
<br /> | ||
<div class="command-btns"> | ||
<p:commandLink id="cancel" actionListener="#{logic.close}" | ||
value="Cancel" immediate="true" /> | ||
<p:commandButton id="createPaymentLink" widgetVar="btn" | ||
disabled="#{managedBean.disableForm}" | ||
actionListener="#{managedBean.onSendRequest()}" | ||
value="Create" update="form" icon="pi pi-check" /> | ||
</div> | ||
</h:form> | ||
</ui:define> | ||
</ui:composition> | ||
</p:panelGrid> | ||
<br /> | ||
<div class="command-btns"> | ||
<p:commandLink id="cancel" actionListener="#{logic.close}" value="Cancel" | ||
immediate="true" /> | ||
<p:commandButton id="createPaymentLink" widgetVar="btn" | ||
disabled="#{managedBean.disableForm}" | ||
actionListener="#{managedBean.onSendRequest()}" value="Create" | ||
update="form" icon="pi pi-check" /> | ||
</div> | ||
</h:form> | ||
</ui:define> | ||
</ui:composition> | ||
</h:body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.