This repository has been archived by the owner on Mar 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2359 from spryker/feature/ratepay-demo
Feature/ratepay after demo accepted
- Loading branch information
Showing
148 changed files
with
3,111 additions
and
968 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Copyright (c) 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var $ = require('jquery'); | ||
|
||
$(document).ready(function() { | ||
$('#paymentForm_ratepayInstallment_debit_pay_type').on('change', function(event) { | ||
var sectionPattern = '.ratepay-installment-pay-type-' + $(event.target).val().toLowerCase(); | ||
$('.ratepay-installment-pay-type').hide(); | ||
$(sectionPattern).show(); | ||
}).trigger('change'); | ||
|
||
$('#paymentForm_ratepayInstallment_installment_calculation_type').on('change', function(event) { | ||
var sectionPattern = '.ratepay-installment-' + $(event.target).val().toLowerCase(); | ||
$('.ratepay-installment-calculation-type').hide(); | ||
$(sectionPattern).show(); | ||
}).trigger('change'); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Copyright (c) 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
require('./modules/main'); |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"private": true, | ||
"name": "spryker-yves-ratepay", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"jquery": "~2.2.0" | ||
} | ||
} |
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
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
32 changes: 32 additions & 0 deletions
32
config/Zed/Oms/RatepaySubProcesses/RatepayPaymentRequest.xml
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<statemachine | ||
xmlns="spryker:oms-01" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="spryker:oms-01 http://static.spryker.com/oms-01.xsd"> | ||
|
||
<process name="RatepayPaymentRequest"> | ||
|
||
<states> | ||
<state name="payment request initialized"/> | ||
<state name="payment request invalid"/> | ||
</states> | ||
|
||
<transitions> | ||
<transition happy="true" condition="Ratepay/IsPaymentRequestSuccess"> | ||
<source>payment request initialized</source> | ||
<target>payment confirmation initialized</target> | ||
<event>do payment request</event> | ||
</transition> | ||
|
||
<transition> | ||
<source>payment request initialized</source> | ||
<target>payment request invalid</target> | ||
<event>do payment request</event> | ||
</transition> | ||
|
||
</transitions> | ||
<events> | ||
<event name="do payment request" onEnter="true" command="Ratepay/PaymentRequest" /> | ||
</events> | ||
</process> | ||
</statemachine> |
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.