BKM Express
Last updated
Was this helpful?
Was this helpful?
/src/views/checkout/steps/payment/options/bkm.tsximport PluginModule, { Component } from '@akinon/next/components/plugin-module';
const Bkm = () => {
return (
<PluginModule
component={Component.BKMExpress}
props={{
translations: {
title: 'Pay with BKM Express',
description: `When paying with BKM Express, you will be redirected to www.bkmexpress.com.tr.`,
button: 'Pay Now'
}
}}
/>
);
};
export default Bkm;import PluginModule, { Component } from '@akinon/next/components/plugin-module';
<PluginModule
component={Component.BKMExpress}
props={{
customUIRender: ({
handleSubmit,
onSubmit,
control,
errors,
translations,
bkmFrameId
}) => (
<div className="px-4 py-6">
<form onSubmit={handleSubmit(onSubmit)}>
<h2 className="font-semibold text-2xl mb-4">{translations?.title}</h2>
<p className="text-sm">
When paying with BKM Express, you will be redirected to
www.bkmexpress.com.tr. <br />
You need to log in to the application with the username and password
you used when signing up to BKM Express. You can easily pay by selecting
the card you want to make a transaction and the payment method from the
payment screen that appears. After completing your shopping, you will
automatically return to site.
</p>
<div className="py-4">
<CheckoutAgreements
control={control}
error={errors?.agreement}
fieldId="agreement"
/>
</div>
<button className="w-full bg-primary text-white h-9" type="submit">
Pay with BKM Express
</button>
</form>
<div
id={bkmFrameId}
className="bkm-frame !flex justify-center items-center !pt-0"
></div>
</div>
)
}}
/>;