Skip to content

Commit

Permalink
Payment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidhee1411 committed Apr 24, 2023
1 parent 5220455 commit 204d5fe
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/screens/Payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ const Payment = ({navigation}) => {
style={{
position: 'absolute',
right: -150,
bottom: 0,
top:340,
zIndex:-1
}}>
</Image>
Expand All @@ -394,7 +394,12 @@ const Payment = ({navigation}) => {
}
else if (!cvc) {
Alert.alert("Need to enter the CVC/Security code for your card.")
}}
}
else {
useCard();
navigation.navigate(DeliveryStatus);
}
}
else if(selectedButton === "mealPlanCash") {
if (!studentname) {
Alert.alert("Need to enter the name on your card.")
Expand All @@ -405,15 +410,14 @@ const Payment = ({navigation}) => {
else if (!studentID) {
Alert.alert("Need to enter student's ID.")
}
}
else {
useCard();
navigation.navigate(DeliveryStatus);
else {
useCard();
navigation.navigate(DeliveryStatus);
}
}}}>
<Text style={{textAlign:'center'}}>Place Order ${total.toFixed(2)}</Text>
</TouchableOpacity>

</View>
</View>
</View>
);
};
Expand Down

0 comments on commit 204d5fe

Please sign in to comment.