## web scraping – Is there a publicly accessible API for credit card rewards data?

I’m trying to create a credit card comparison tool similar to Ratehub’s and Greedyrates’

https://www.ratehub.ca/credit-cards

https://www.greedyrates.ca/

Do major card networks like Visa, Mastercard, American Express have APIs that I can use to retrieve up-to-date data for comparison? How do the sites above get their data to compare credit cards?

Special deal for affiliates who works with whitehat and blackhat offers.

We provide Premium cards of the real bank for the most of Tier 1 countries.

1.Payments are processed manually through the manager and paid separately.

2.We guarantee that the payment will be linked to our FB accounts and provide full assistance in using the bank card. These are payments from real bank, so we will always be able to provide security code FB for checkpoints.
Commission amount
RUB 0 – 1,000,000 9%
RUB 1,000,000 – 3,000,000 8%
RUB 3,000,000 – 5,000,000 7%
RUB 5,000,000 – 30,000,000 6%
RUB 30,000,000 – ∞ 5%

## performance – Checking the type and validity of a credit card with Luhn’s algorithm in C (CS50)

I’m taking CS50 Intro to CS. In this assignment, we’re asked to make a program that can identify what type of credit card (AMEX, Visa, MasterCard) is given in the input (and whether it is valid.) Validity is checked using Luhn’s Algorithm. Here’s how the algorithm works:

1. Multiply every other digit by 2, starting with the number’s second-to-last digit, and then add those products’ digits together. (We’re not adding the products together, rather the digits of the products!)
2. Add the sum to the sum of the digits that weren’t multiplied by 2.
3. If the total’s last digit is 0, the number is valid!

Then, the type of credit card is checked by checking the first few digits of the credit card. I.e American Express numbers start with 34 or 37, VISA starts with 4, etc etc. Here’s my implementation:

``````#include <stdio.h>
#include <cs50.h>
#include <math.h>
#include <stdlib.h>

bool check_is_card_valid(long card);
int checksum(long card);
bool array_consists(const unsigned int arr(), int val, int arrlen);
string get_card_type(long card);
int get_nth_digit(long card, int digit);
int get_card_length(long card);

const unsigned int accepted_card_length() =
{
15, // AMEX uses 15 digit numbers
16, // MasterCard and VISA uses 16 digit numbers
13  // VISA uses 13 digit numbers
};
const size_t acc_card_len = sizeof(accepted_card_length) / sizeof(*accepted_card_length);
const unsigned int AMEX_first_digits() = {34, 37};
const size_t amex_digits_len = sizeof(AMEX_first_digits) / sizeof(*AMEX_first_digits);
const unsigned int MASTERCARD_first_digits() = {51, 52, 53, 54, 55};
const size_t mc_digits_len = sizeof(MASTERCARD_first_digits) / sizeof(*MASTERCARD_first_digits);
const unsigned int VISA_first_digit = 4;

int main(void)
{
long card_number = get_long("Card number: ");
if (check_is_card_valid(card_number) == true)
{
printf("%sn", get_card_type(card_number));
}
else
{
printf("INVALIDn");
}
}

/*
Luhn's algorithm. Starting from the right, multiply every other digit by 2 and add up the digits
add this sum to the sum of the digits that were not multiplied by 2.
*/

int checksum(long card)
{
int checksum = 0;
for (int i = 0; i < get_card_length(card); i++)
{
if (i % 2 == 0)
{
checksum += get_nth_digit(card, i);
}
else if (i % 2 == 1)
{
int num = get_nth_digit(card, i) * 2;
if (num > 9)
{
num = get_nth_digit(num, 0) + get_nth_digit(num, 1);
}
checksum += num;
}
}
return checksum;
}

bool array_consists(const unsigned int arr(), int val, int arrlen)
{
for (int i = 0; i < arrlen; i++)
{
if (val == arr(i))
{
return true;
}
}
return false;
}

// Luhn's algorithm states that if the last digit of the checksum is 0, it is valid
bool check_is_card_valid(long card)
{
if (array_consists(accepted_card_length, get_card_length(card), acc_card_len) == true)
{
return checksum(card) % 10 == 0;
}
else
{
return false;
}
}

string get_card_type(long card)
{
int card_length = get_card_length(card);
int first_digit = get_nth_digit(card, card_length - 1);
int second_digit = get_nth_digit(card, card_length - 2);
int first_two_digits = (first_digit * 10) + second_digit;
if (first_digit == VISA_first_digit)
{
return "VISA";
}
else if (array_consists(AMEX_first_digits, first_two_digits, amex_digits_len) == true)
{
return "AMEX";
}
else if (array_consists(MASTERCARD_first_digits, first_two_digits, mc_digits_len) == true)
{
return "MASTERCARD";
}
else
{
return "INVALID";
}

}

// gets nth digit from the right, starting with 0, using modulo
int get_nth_digit(long card, int digit)
{
return fmod(floor(card / pow(10, digit)), 10);
}

int get_card_length(long card)
{
return floor(log10(card)) + 1;
}

``````

I would like some feedback on my code and how I could improve it; things like style, readability, cleanness, efficiency, etc. Is my code easily understandable? What about the comments – is there not enough comments? I try not to comment on my code when the function of something seems obvious. How do I improve the style, and are there any code conventions I’m not following? Can I optimize this to make it a faster process? Or maybe there’s a better way to do the same thing? Basically, how do I improve my code?

## magento2.3 – How do i get the order ID and Order Subtotal in the credit memo page?

Im currently trying to write a piece of code that refunds an order and attach it to the “refund” button in the credit memo page using the “sales_order_payment_refund” event.

But, right now, I want to be able to get Order_ID and Order_Subtotal from the credit memo page of the order I have opened to proceed, how can I retrieve those 2?

## Magento 2, Cancels order after credit card payment complete

I’m facing an interesting issue.
When the customer pays with credit card, magento cancels the order automatically.
I have no idea how it happens tough.
Since i’m newbie, i couldn’t find out what is wrong.
Any ideas?

## fraud – Online Retailer asks for a copy of Credit Card with full information

Yesterday I placed an order for a part from an online retailer ShopBLT (around \$200). Shortly thereafter confirming my order, I received an email from their sales team saying something similar to the following:

As specified on the website, we need you to supply front and back images of the credit card used to place the order, since you are using a credit card issued in a country other than the United States, or your order is shipping outside of the United States, or the Internet IP address used when the order was placed originates outside of the United States.

Clear photographs of the card taken from a digital camera or cellphone
are preferred. We do NOT require high-resolution scanned images,
however, they must be at least 640×480 in resolution and in color. We
prefer that you simply take out the card, put it on your keyboard, and
snap a few quick photos. Please save the photos in .BMP, .JPG, .PDF,
or .TIF format.

I called their customer support to ask them about bluring out the first 12 digis on the front of the card (since only the last 4 digits are being displayed in the order receipt) and bluring out the CVV code on the back and they said “No”. They need full clear information of both card’s side.

I a previous experience, where I was requested to upload a picture of the card, that I used, but they always requested only the last 4 digits and never to show the CVV code on the back of the card.

Is there any reason where a merchant would require the card’s info be sent through an email or a form on their site to them when you already entered this information in the check-out form in the website’s cart? Doesn’t this sound sketchy?

## layout – What icon best describes “Waiting for credit approval”?

We have an app which has money transaction and a % of that money we return in Bonus Cash (similar to a rewards system).

To illustrate, the user should read something around these lines:

``````Your total balance is \$23.00.
\$5.00 is waiting approval.
``````

Basically, the user can immediately use \$23 in rewards, which we already approved. But another \$5 that he generated from another transaction in the past is not approved but our administrative team yet.

I want to use an icon next to this information to better clarify to the user. We thought in using a clock or hourglass, but it seems off.

Ps: We legally have to show this “waiting for approval” number somewhere, since it’s a consumer’s right. But not yet available.

Actual wireframe of the app to illustrate even more (in Portuguese). There are two types of Bonus, that’s why we have two sections, both have this “Waiting approval” (Aguardando Liberação) message.

Translation:

``````eBonus - My Profile

My Bonus

Network Bonus         Store Bonus
R\$23,00               R\$49,00

You can use this      See details
bonus anywhere.

R\$5,00 is waiting    R\$13,57 is waiting
for approval.         for approval
``````

Prior to seeing this screen the user has an understanding of what these two types of Bonus are.

Layout option with Icon right next to the info:

## Question

Does putting the icon makes sense? If so, which would be more appropriate?

## [GET] Free Website Traffic Exchange 1000 credit 3 website

WebHit is the leading traffic exchange service that empowers thousands of webmasters with unlimited real human visitors to their websites. WebHit is the most advanced platform available for traffic exchange and alexa rank booking. It works fully automatic with an integrated exchanger software for multiple platforms, Windows, macOS and linux and Web Exchanger.

Users can receive hundreds of thousands of hits to their websites, get more conversions, boost their website’s Alexa rank and increase their website’s value.

Signing up is as easy as ABC and does not require a credit card. It’s 100% free to use!

We do offer affordable account upgrades starting at \$9/month which unlocks the white-label traffic and geo-targeting features + more. We also offer booster packs. It is the simplest way to exchange traffic or buy it at very low cost, increasing your website traffic and boosting alexa rankings.

WebHit send businesses to your site and has everything you need to keep you and your clients happy.

1. Register below

2. Once register and confirm your registration, comment here by posting your username (do not send me PM)
3. I will send you your credits

NB: You can get more visits. With credits i will send you, you will get 1000 visits of 30 seconds to 300 seconds . Well if you set 10 seconds per visits, this will be more visite.

## [GET] Free Website Traffic Exchange 1000 credit 3 website | NewProxyLists

WebHit is the leading traffic exchange service that empowers thousands of webmasters with unlimited real human visitors to their websites. WebHit is the most advanced platform available for traffic exchange and alexa rank booking. It works fully automatic with an integrated exchange software for multiple platforms, Windows, macOS and linux and Web Exchanger.

Users can receive hundreds of thousands of hits to their websites, get more conversions, boost their website’s Alexa rank and increase their website’s value.

1. Register below

2. Once register and confirm your registration, comment here by posting your username (do not send me PM)

## [GET] Free Website Traffic Exchange 1000 credit 3 website | NewProxyLists

WebHit is the leading traffic exchange service that empowers thousands of webmasters with unlimited real human visitors to their websites. WebHit is the most advanced platform available for traffic exchange and Alexa rank booking. It works fully automatic with an integrated exchanger software for multiple platforms, Windows, macOS and linux and Web Exchanger.

Users can receive hundreds of thousands of hits to their websites, get more conversions, boost their website’s Alexa rank and increase their website’s value.

WebHit send businesses to your site and has everything you need to keep you and your clients happy.