summaryrefslogtreecommitdiff
path: root/moneyjsx/src/payment-success.tsx
blob: 30316fbac4543930045dd5c46ff92b4d609cd8e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import * as JSX from './jsx';
import { Page, GroupBox } from './components';

export default function PaymentSuccess( props: any ) {
  setTimeout( () => JSX.navigateParams( "/terminal", {} ), 1000 );

  return <Page>
    <GroupBox title="Payment successful">
      <div style="padding: 5px">
        Your payment was successful. You should be redirected shortly...
      </div>
      <div style="width: 100%; text-align: right;">
        <button style="margin-right: 5px" onclick={ () => JSX.navigateParams( "/terminal", {} ) }>
          go to terminal
        </button>
      </div>
    </GroupBox>
  </Page>
}