ajout des methodes de payment orange et MTN volet nano Santé

This commit is contained in:
Novic-Djef 2023-10-20 15:23:01 +01:00
parent b64d9a763a
commit 62910a38d3
114 changed files with 21547 additions and 1680 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
android:height="108dp"
android:width="108dp"
android:viewportHeight="108"
android:viewportWidth="108"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#008577"
android:pathData="M0,0h108v108h-108z"/>
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,0L19,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M29,0L29,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M39,0L39,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M49,0L49,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M59,0L59,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M69,0L69,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M79,0L79,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M89,0L89,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M99,0L99,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,9L108,9"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,19L108,19"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,29L108,29"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,39L108,39"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,49L108,49"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,59L108,59"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,69L108,69"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,79L108,79"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,89L108,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,99L108,99"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,29L89,29"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,39L89,39"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,49L89,49"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,59L89,59"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,69L89,69"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,79L89,79"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M29,19L29,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M39,19L39,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M49,19L49,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M59,19L59,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M69,19L69,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M79,19L79,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
</vector>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -64,8 +64,8 @@ import RetraitWalletVersCashUser from './screens/wallet/user/RetraitWalletVersCa
import RetraitCarteVersCashUser from './screens/wallet/user/RetraitCarteVersCashUser';
import RetraitCarteVersWalletUser from './screens/wallet/user/RetraitCarteVersWalletUser';
import RetraitEnCashAgent from './screens/wallet/agent/RetraitEnCashAgent';
import Modal from './screens/wallet/user/modal';
import PaymentCard from './screens/nano-sante/paymentCard/paymentCard';
import PaymentCarteVersAutreWallet from './screens/wallet/user/PaymentCarteVersAutreWallet';
import PaymentCarteVersAutreWalletNanosante from './screens/nano-sante/paymentCard/PaymentCarteVersAutreWalletNanosante';
import AutreCarteN from './screens/nano-sante/paymentCard/AutreCarteN';
import CarteLierN from './screens/nano-sante/paymentCard/carteLierN';
import AutreCarte from './screens/wallet/user/AutreCarte';
@ -417,10 +417,10 @@ const AppAgentStack = createDrawerNavigator(
createGroupNanoCredit: CreateGroupNanoCredit,
cautionNanoCreditAgent: CautionNanoCreditAgent,
PDFViewerScreen: PDFViewerScreen,
modal: Modal,
paymentCarteVersAutreWallet: PaymentCarteVersAutreWallet,
autreCarte: AutreCarte,
carteLier: CarteLier,
paymentCard: PaymentCard,
paymentCarteVersAutreWalletNanosante: PaymentCarteVersAutreWalletNanosante,
autreCarteN: AutreCarteN,
carteLierN: CarteLierN,
walletNanosante: WalletNanosante,

BIN
app/assets/mtn.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
app/assets/orange.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -54,10 +54,10 @@
"retraitCarteVersAutreWalletUser": "retraitCarteVersAutreWalletUser",
"walletNanosante": "walletNanosante",
"mobileMoneyNanoSante": "mobileMoneyNanoSante",
"modal": "modal",
"paymentCarteVersAutreWallet": "paymentCarteVersAutreWallet",
"autreCarte": "autreCarte",
"carteLier": "carteLier",
"paymentCard": "paymentCard",
"paymentCarteVersAutreWalletNanosante": "paymentCarteVersAutreWalletNanosante",
"autreCarteN": "autreCarteN",
"carteLierN": "carteLierN",
"envoieCashVersWalletAgent": "envoieCashVersWalletAgent",

View File

@ -516,7 +516,7 @@ class Home extends BaseScreen {
if (c.length > 0 && pays) {
this.setState({filternetwork: c[0], myNetwork: c[0], filternetworkTemp: c[0]})
this.retrieveAllPoint(pays)
//this.retrieveAllPoint(pays)
} else {
if (this.state.user) {
@ -1739,7 +1739,7 @@ class Home extends BaseScreen {
translucent={true}
/>
{/* Start here to comment */}
{
{/* {
(this.state.loadingDialog || this.props.loading) ?
<View
style={{
@ -1760,7 +1760,7 @@ class Home extends BaseScreen {
fontWeight: 'bold'
}}>{I18n.t("LOADING_DOTS")}</Text>
</View> : null
}
} */}
<IMap
ref={(re) => {
this.map = re
@ -2468,98 +2468,98 @@ class Home extends BaseScreen {
</TouchableOpacity>)
}
retrieveAllPoint(dial_code) {
/* let markers= this.markerManager.getLocalMarkers()
console.log( markers.length)
if(markers.length>0){
console.debug("load from local")
for (let p of markers) {
console.log(` ${p.lastname}`);
}
this.markerManager.close();
// retrieveAllPoint(dial_code) {
// /* let markers= this.markerManager.getLocalMarkers()
// console.log( markers.length)
// if(markers.length>0){
// console.debug("load from local")
// for (let p of markers) {
// console.log(` ${p.lastname}`);
// }
// this.markerManager.close();
this.setState({allpoint: [], loadingDialog: false})
}else*/
getMakersFrom(dial_code).then((data) => {
new Promise((resolve, reject) => {
try {
const ds = data.datas
this.setState({allpoint: ds, loadingDialog: false})
// this.setState({allpoint: [], loadingDialog: false})
// }else*/
// getMakersFrom(dial_code).then((data) => {
// new Promise((resolve, reject) => {
// try {
// const ds = data.datas
// this.setState({allpoint: ds, loadingDialog: false})
resolve(ds)
} catch (e) {
//Crashlytics.log(e.message)
console.warn(e.message)
reject(new Error(e.message))
}
}).then((ds) => {
// this.markerManager.insertMarkers(ds).then((res)=>{console.warn(res)})
this.onLoadMore()
}).catch((e) => {
this.setState({loadingDialog: false})
//Crashlytics.log(e.message)
console.log("on get marker")
// resolve(ds)
// } catch (e) {
// //Crashlytics.log(e.message)
// console.warn(e.message)
// reject(new Error(e.message))
// }
// }).then((ds) => {
// // this.markerManager.insertMarkers(ds).then((res)=>{console.warn(res)})
// this.onLoadMore()
// }).catch((e) => {
// this.setState({loadingDialog: false})
// //Crashlytics.log(e.message)
// console.log("on get marker")
Alert.alert(
I18n.t("UNABLE_TO_CONNECT_TITLE"),
I18n.t('TEXT_NETWORK_UNABLE')
,
[
{
text: I18n.t("NO"), onPress: () => {
BackHandler.exitApp()
}
},
{
text: I18n.t("YES"), onPress: () => {
this.setState({loadingDialog: true})
if (dial_code !== null && dial_code !== undefined)
this.retrieveAllPoint(dial_code)
else
this.requestCameraPermission()
}
}
// Alert.alert(
// I18n.t("UNABLE_TO_CONNECT_TITLE"),
// I18n.t('TEXT_NETWORK_UNABLE')
// ,
// [
// {
// text: I18n.t("NO"), onPress: () => {
// BackHandler.exitApp()
// }
// },
// {
// text: I18n.t("YES"), onPress: () => {
// this.setState({loadingDialog: true})
// if (dial_code !== null && dial_code !== undefined)
// this.retrieveAllPoint(dial_code)
// else
// this.requestCameraPermission()
// }
// }
],
{cancelable: false}
)
})
// ],
// {cancelable: false}
// )
// })
}).catch((e) => {
console.log("on retreive>getmarkers", e.message)
// }).catch((e) => {
// console.log("on retreive>getmarkers", e.message)
this.setState({loadingDialog: false})
if (this.state.allpoint.length <= 0) {
console.log("no point")
Alert.alert(
I18n.t("UNABLE_TO_CONNECT_TITLE"),
I18n.t('TEXT_NETWORK_UNABLE')
,
[
{
text: I18n.t("NO"), onPress: () => {
BackHandler.exitApp()
}
},
{
text: I18n.t("YES"), onPress: () => {
if (this.state.allpoint.length <= 0) {
this.setState({loadingDialog: true})
if (dial_code !== null && dial_code !== undefined)
this.retrieveAllPoint(dial_code)
else
this.requestCameraPermission()
}
}
}
// this.setState({loadingDialog: false})
// if (this.state.allpoint.length <= 0) {
// console.log("no point")
// Alert.alert(
// I18n.t("UNABLE_TO_CONNECT_TITLE"),
// I18n.t('TEXT_NETWORK_UNABLE')
// ,
// [
// {
// text: I18n.t("NO"), onPress: () => {
// BackHandler.exitApp()
// }
// },
// {
// text: I18n.t("YES"), onPress: () => {
// if (this.state.allpoint.length <= 0) {
// this.setState({loadingDialog: true})
// if (dial_code !== null && dial_code !== undefined)
// this.retrieveAllPoint(dial_code)
// else
// this.requestCameraPermission()
// }
// }
// }
],
{cancelable: false}
)
}
})
// ],
// {cancelable: false}
// )
// }
// })
}
// }
showLoadMoreView() {
if (this.state.isNeedLoadMore)

View File

@ -304,6 +304,7 @@ class AutreCarteN extends Component {
)[0].code_country,
with_linked_card: false,
payment_method: 'CARD',
transactionType: "USER_PAY_INSURANCE",
});
} catch (error) {
console.log('error', error);

View File

@ -126,7 +126,7 @@ class PaymentCard extends Component {
with_linked_card : true,
onGoBack: () => this.refresh(),
lottie: {
source: require("./../../../datas/json/wallet_with_cash.json"),
source: require("../../../datas/json/wallet_with_cash.json"),
loop: true
}
})
@ -157,7 +157,7 @@ class PaymentCard extends Component {
with_linked_card : false,
onGoBack: () => this.refresh(),
lottie: {
source: require("./../../../datas/json/wallet_with_cash.json"),
source: require("../../../datas/json/wallet_with_cash.json"),
loop: true
}
})
@ -190,7 +190,7 @@ class PaymentCard extends Component {
optionSelect: optionenvoieautrewalletNanoSanteScreen,
onGoBack: () => this.refresh(),
lottie: {
source: require("./../../../datas/json/wallet_with_cash.json"),
source: require("../../../datas/json/wallet_with_cash.json"),
loop: true
}
})
@ -220,7 +220,7 @@ class PaymentCard extends Component {
optionSelect: optionenvoieautrewalletNanoSanteScreen,
onGoBack: () => this.refresh(),
lottie: {
source: require("./../../../datas/json/wallet_with_cash.json"),
source: require("../../../datas/json/wallet_with_cash.json"),
loop: true
}
})

View File

@ -447,10 +447,10 @@ export default class OptionsMenu extends Component {
item === 'retraitEnCashAgent' ||
item === 'retraitCarteVersCashAgent' ||
item === 'retraitCarteVersAutreWalletUser' ||
item === 'modal' ||
item === 'paymentCarteVersAutreWallet' ||
item === 'autreCarte' ||
item === 'carteLier' ||
item === 'paymentCard' ||
item === 'paymentCarteVersAutreWalletNanosante' ||
item === 'autreCarteN' ||
item === 'carteLierN' ||
item === 'walletNanosante' ||

View File

@ -930,7 +930,7 @@ class WalletDetailUser extends Component {
</View>
<View style={{flexDirection: 'row', marginTop: 10}}>
<View style={{flex: 1}}>
<Text tyle={[Typography.body2]}>{I18n.t('NET_AMOUNT')}</Text>
<Text tyle={[Typography.body2]}>{I18n.t('AMOUNT')}</Text>
</View>
<View style={{flex: 1, alignItems: 'flex-end'}}>
<Text

Some files were not shown because too many files have changed in this diff Show More